#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> */
/* 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;
#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>
#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 */