# include <errno.h>
#endif
+#include <fcntl.h>
+
#if defined HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
# include <sys/socket.h>
#endif
+#if defined HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
+#if defined HAVE_NETINET_TCP_H
+# include <netinet/tcp.h>
+#endif
+
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
#endif
# if defined _WIN32
+# define P9Y_NEED_GET_SOCKET_ERRNO
int get_socket_errno();
# define SHUT_WR SD_SEND
# define SHUT_RD SD_RECEIVE