consolidate
[awesomized/libmemcached] / src / p9y / socket.hpp
index ca0b97d3a5f140ec48cf6bc9b71ecfb56489fe50..9678b39fec231f03ba3ae2d17ec59c490706f812 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 
-#include "libmemcached-1.0/platform.h"
+#include "libmemcached-1/platform.h"
 
 #if defined __cplusplus
 # include <cerrno>
@@ -8,6 +8,8 @@
 # include <errno.h>
 #endif
 
+#include <fcntl.h>
+
 #if defined HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
 # 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
@@ -33,6 +39,7 @@ extern "C" {
 #endif
 
 # if defined _WIN32
+# define P9Y_NEED_GET_SOCKET_ERRNO
 int get_socket_errno();
 #  define SHUT_WR SD_SEND
 #  define SHUT_RD SD_RECEIVE