X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=util%2Finstance.cc;h=8f5d17383d95d3add0c7e5f0c6a693178328e8ff;hb=398f48445cacf12679248142f0c86d3a0d6caab6;hp=8b9f5ee94afa5da24dd60f8600868a21c131836a;hpb=fbdf9f2089a2653c8ea8150af22852ebc61ce42d;p=awesomized%2Flibmemcached diff --git a/util/instance.cc b/util/instance.cc index 8b9f5ee9..8f5d1738 100644 --- a/util/instance.cc +++ b/util/instance.cc @@ -36,7 +36,7 @@ */ -#include +#include "mem_config.h" #include "util/instance.hpp" @@ -50,7 +50,23 @@ #include #ifdef HAVE_UNISTD_H -#include +# include +#endif + +#ifndef INVALID_SOCKET +# define INVALID_SOCKET -1 +#endif + +#ifndef SOCKET_ERROR +# define SOCKET_ERROR -1 +#endif + +#ifndef get_socket_errno +# define get_socket_errno() errno +#endif + +#ifndef closesocket +# define closesocket(a) close(a) #endif @@ -135,7 +151,7 @@ bool Instance::run() return false; } _addrinfo_next= _addrinfo_next->ai_next; - + /* fall through */ case CONNECT: close_socket();