Remove requirements for rpm that were unused.
[awesomized/libmemcached] / libmemcached / instance.h
index dc9e45ede805939f62cac8fbb352259c96e1d1f3..e564afaaa3871cf0d9b44c676380c1ef6c354bee 100644 (file)
 #pragma once
 
 #ifndef WIN32
-#include <netdb.h>
+# ifdef HAVE_NETDB_H
+#  include <netdb.h>
+# 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