X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Finstance.h;h=e564afaaa3871cf0d9b44c676380c1ef6c354bee;hb=1ed39cb2d0601d753ef54be65f24334097f48805;hp=6a56aa4c7b20f22b0f97238d6eab299e8ea48802;hpb=eff4858179d7883b92ab8682392357d104d5a8ab;p=awesomized%2Flibmemcached diff --git a/libmemcached/instance.h b/libmemcached/instance.h index 6a56aa4c..e564afaa 100644 --- a/libmemcached/instance.h +++ b/libmemcached/instance.h @@ -39,19 +39,21 @@ #pragma once #ifndef WIN32 -#include +# ifdef HAVE_NETDB_H +# include +# endif #endif #ifdef NI_MAXHOST -#define MEMCACHED_NI_MAXHOST NI_MAXHOST +# define MEMCACHED_NI_MAXHOST NI_MAXHOST #else -#define MEMCACHED_NI_MAXHOST 1025 +# define MEMCACHED_NI_MAXHOST 1025 #endif #ifdef NI_MAXSERV -#define MEMCACHED_NI_MAXSERV NI_MAXSERV +# define MEMCACHED_NI_MAXSERV NI_MAXSERV #else -#define MEMCACHED_NI_MAXSERV 32 +# define MEMCACHED_NI_MAXSERV 32 #endif #ifdef __cplusplus @@ -59,6 +61,7 @@ namespace org { namespace libmemcached { +// @todo Complete class transformation struct Instance { in_port_t port() const {