From: Philip Homburg Date: Fri, 30 Sep 2005 12:41:25 +0000 (+0000) Subject: Misc. compatibility changes X-Git-Tag: v3.1.2a~693 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a9a8299e8882681db73dc6932598172d1c8023b4;p=minix.git Misc. compatibility changes --- diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 6ccfb0abc..80e019fb3 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -5,8 +5,16 @@ arpa/inet.h #ifndef _ARPA__INET_H #define _ARPA__INET_H +#include + /* Open Group Base Specifications Issue 6 (not complete): */ +#ifndef _IN_ADDR_T +#define _IN_ADDR_T +/* Has to match corresponding declaration in */ +typedef uint32_t in_addr_t; +#endif /* _IN_ADDR_T */ + #ifndef _STRUCT_IN_ADDR #define _STRUCT_IN_ADDR /* Has to match corresponding declaration in */ diff --git a/include/netinet/in.h b/include/netinet/in.h index 278f406ac..ca35c9134 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -12,6 +12,7 @@ netinet/in.h /* Open Group Base Specifications Issue 6 (not complete) */ #define INADDR_ANY (uint32_t)0x00000000 +#define INADDR_BROADCAST (uint32_t)0xFFFFFFFF typedef uint16_t in_port_t; diff --git a/include/sys/select.h b/include/sys/select.h index f101da5df..b06fcbbe9 100755 --- a/include/sys/select.h +++ b/include/sys/select.h @@ -1,6 +1,10 @@ #ifndef _SYS_SELECT_H #define _SYS_SELECT_H 1 +#ifndef _POSIX_SOURCE +#define _POSIX_SOURCE 1 +#endif + #include #include #include diff --git a/include/sys/socket.h b/include/sys/socket.h index c114f2728..91400526c 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -25,7 +25,8 @@ sys/socket.h #define SO_REUSEADDR 0x0004 #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 */ #define SHUT_RD 0 /* No further reads */