check_include(getopt.h)
check_include(libgen.h)
check_include(netdb.h)
+check_include(netinet/in.h)
check_include(poll.h)
check_include(strings.h)
check_include(sys/poll.h)
#include "libmemcached/options.hpp"
#include "libmemcached/virtual_bucket.h"
#include "p9y/random.hpp"
-#include "p9y/socket.hpp"
#include <ctime>
#include <sys/types.h>
# include <iso646.h>
#endif
-#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
-#endif
+#include "p9y/socket.hpp"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <fcntl.h>
-#include <sys/types.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#include "p9y/poll.hpp"
#include <cassert>
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
memcached_return_t memcached_flush_buffers(memcached_st *shell) {
Memcached *memc = memcached2Memcached(shell);
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
static inline void _server_init(memcached_instance_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
*/
#include "libmemcached/common.h"
-
-#include "p9y/socket.hpp"
#include "p9y/poll.hpp"
void initialize_binary_request(memcached_instance_st *server,
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#define memcached_set_purging(__object, __value) ((__object)->state.is_purging = (__value))
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#include <cassert>
#include <atomic>
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
static inline void _server_init(memcached_server_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
*/
#include "libmemcachedprotocol/common.h"
-
-#include <sys/types.h>
+#include "p9y/socket.hpp"
#define ensure(a) \
if (!(a)) { \
# include <sys/socket.h>
#endif
+#if defined HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
#include "common.hpp"
#include <sys/socket.h>
+#include <netinet/in.h>
#include <sys/un.h>
class Connection {