X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fp9y%2Fsocket.hpp;h=a9a18ad28f79d20e77c1b2babbc5655580f240d3;hb=011ea033d902722b9744ea9f28e646734ffdcaf2;hp=ca0b97d3a5f140ec48cf6bc9b71ecfb56489fe50;hpb=b9748819d603f9d5c1dc54730ef38b6ee6d63ca4;p=m6w6%2Flibmemcached diff --git a/src/p9y/socket.hpp b/src/p9y/socket.hpp index ca0b97d3..a9a18ad2 100644 --- a/src/p9y/socket.hpp +++ b/src/p9y/socket.hpp @@ -8,6 +8,8 @@ # include #endif +#include + #if defined HAVE_ARPA_INET_H # include #endif @@ -20,6 +22,10 @@ # include #endif +#if defined HAVE_NETINET_TCP_H +# include +#endif + #if defined HAVE_SYS_UN_H # include #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