X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fp9y%2Fsocket.hpp;h=a9a18ad28f79d20e77c1b2babbc5655580f240d3;hb=011ea033d902722b9744ea9f28e646734ffdcaf2;hp=339b5995bf285465e160c8989b12c563fdda8a5b;hpb=2f289c64f625962d945ec3bee80f36bc5c61ee35;p=m6w6%2Flibmemcached diff --git a/src/p9y/socket.hpp b/src/p9y/socket.hpp index 339b5995..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 @@ -16,6 +18,14 @@ # include #endif +#if defined HAVE_NETINET_IN_H +# include +#endif + +#if defined HAVE_NETINET_TCP_H +# include +#endif + #if defined HAVE_SYS_UN_H # include #endif @@ -29,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