Misc. compatibility changes

This commit is contained in:
Philip Homburg 2005-09-30 12:41:25 +00:00
parent 440668c645
commit a9a8299e88
4 changed files with 15 additions and 1 deletions

View file

@ -5,8 +5,16 @@ arpa/inet.h
#ifndef _ARPA__INET_H #ifndef _ARPA__INET_H
#define _ARPA__INET_H #define _ARPA__INET_H
#include <stdint.h>
/* Open Group Base Specifications Issue 6 (not complete): */ /* Open Group Base Specifications Issue 6 (not complete): */
#ifndef _IN_ADDR_T
#define _IN_ADDR_T
/* Has to match corresponding declaration in <netinet/in.h> */
typedef uint32_t in_addr_t;
#endif /* _IN_ADDR_T */
#ifndef _STRUCT_IN_ADDR #ifndef _STRUCT_IN_ADDR
#define _STRUCT_IN_ADDR #define _STRUCT_IN_ADDR
/* Has to match corresponding declaration in <netinet/in.h> */ /* Has to match corresponding declaration in <netinet/in.h> */

View file

@ -12,6 +12,7 @@ netinet/in.h
/* Open Group Base Specifications Issue 6 (not complete) */ /* Open Group Base Specifications Issue 6 (not complete) */
#define INADDR_ANY (uint32_t)0x00000000 #define INADDR_ANY (uint32_t)0x00000000
#define INADDR_BROADCAST (uint32_t)0xFFFFFFFF
typedef uint16_t in_port_t; typedef uint16_t in_port_t;

View file

@ -1,6 +1,10 @@
#ifndef _SYS_SELECT_H #ifndef _SYS_SELECT_H
#define _SYS_SELECT_H 1 #define _SYS_SELECT_H 1
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE 1
#endif
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#include <limits.h> #include <limits.h>

View file

@ -25,7 +25,8 @@ sys/socket.h
#define SO_REUSEADDR 0x0004 #define SO_REUSEADDR 0x0004
#define SO_KEEPALIVE 0x0008 #define SO_KEEPALIVE 0x0008
#define SO_ERROR 0x1007 #define SO_SNDBUF 0x1001 /* send buffer size */
#define SO_ERROR 0x1007 /* get and clear error status */
/* The how argument to shutdown */ /* The how argument to shutdown */
#define SHUT_RD 0 /* No further reads */ #define SHUT_RD 0 /* No further reads */