From: Brian Aker Date: Wed, 17 Aug 2011 19:54:59 +0000 (-0700) Subject: Fix issues that Trond found. X-Git-Tag: 0.52~18 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7c1ca7a0f745ba9db79668269ee2b851edcfb677;p=m6w6%2Flibmemcached Fix issues that Trond found. --- diff --git a/clients/memcapable.cc b/clients/memcapable.cc index 9dff427e..1bb7a88a 100644 --- a/clients/memcapable.cc +++ b/clients/memcapable.cc @@ -20,17 +20,16 @@ #include "poll/poll.h" #endif -#include +#include +#include +#include +#include +#include #include -#include #include #include #include #include -#include -#include -#include -#include #include #include diff --git a/clients/memcat.cc b/clients/memcat.cc index 66ee3253..3e073650 100644 --- a/clients/memcat.cc +++ b/clients/memcat.cc @@ -9,14 +9,13 @@ * */ -#include "config.h" +#include +#include +#include +#include #include -#include -#include -#include #include -#include #include #include "utilities.h" diff --git a/clients/memcp.cc b/clients/memcp.cc index 7b745476..22836251 100644 --- a/clients/memcp.cc +++ b/clients/memcp.cc @@ -11,22 +11,23 @@ #include "config.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include +#include +#ifdef HAVE_STRINGS_H +#include +#endif #include #include -#include -#include -#include -#include #include -#include -#include +#include +#include #include diff --git a/clients/memparse.cc b/clients/memparse.cc index f9a2dcf2..c2557dfd 100644 --- a/clients/memparse.cc +++ b/clients/memparse.cc @@ -38,6 +38,7 @@ #include #include +#include #include #include diff --git a/libmemcached/common.h b/libmemcached/common.h index 5af6916c..f45eaffd 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -63,6 +63,10 @@ #include #include +#ifdef HAVE_STRINGS_H +#include +#endif + #include #include #include diff --git a/libmemcached/server.h b/libmemcached/server.h index dc112153..40328ab6 100644 --- a/libmemcached/server.h +++ b/libmemcached/server.h @@ -38,6 +38,10 @@ #pragma once +#ifndef WIN32 +#include +#endif + enum memcached_server_state_t { MEMCACHED_SERVER_STATE_NEW, // fd == -1, no address lookup has been done MEMCACHED_SERVER_STATE_ADDRINFO, // ADDRRESS information has been gathered