]> Zhao Yanbai Git Server - minix.git/commitdiff
Misc. compatibility changes
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 30 Sep 2005 12:41:25 +0000 (12:41 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 30 Sep 2005 12:41:25 +0000 (12:41 +0000)
include/arpa/inet.h
include/netinet/in.h
include/sys/select.h
include/sys/socket.h

index 6ccfb0abc039c43afe44f063f7dcc2c444703277..80e019fb30ec653e555f6a292aecdc70a8664ede 100644 (file)
@@ -5,8 +5,16 @@ arpa/inet.h
 #ifndef _ARPA__INET_H
 #define _ARPA__INET_H
 
+#include <stdint.h>
+
 /* 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
 #define _STRUCT_IN_ADDR
 /* Has to match corresponding declaration in <netinet/in.h> */
index 278f406acfa2b5625a0a70ab24fece25ebdf97e2..ca35c91344851d2cfe84581e49630df5ea427886 100644 (file)
@@ -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;
 
index f101da5df7ae4f2e9a73e27b08416a812ed13f72..b06fcbbe947efe1baef5877b3a3daacb0edd25bb 100755 (executable)
@@ -1,6 +1,10 @@
 #ifndef _SYS_SELECT_H
 #define _SYS_SELECT_H 1
 
+#ifndef _POSIX_SOURCE
+#define _POSIX_SOURCE 1
+#endif
+
 #include <sys/time.h>
 #include <sys/types.h>
 #include <limits.h>
index c114f272832214b41ec306c2c5b7db1d51c85e59..91400526c760422695d71d6ea2ee4a82d625e559 100644 (file)
@@ -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 */