From 7c1ca7a0f745ba9db79668269ee2b851edcfb677 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Wed, 17 Aug 2011 12:54:59 -0700 Subject: [PATCH] Fix issues that Trond found. --- clients/memcapable.cc | 11 +++++------ clients/memcat.cc | 9 ++++----- clients/memcp.cc | 25 +++++++++++++------------ clients/memparse.cc | 1 + libmemcached/common.h | 4 ++++ libmemcached/server.h | 4 ++++ 6 files changed, 31 insertions(+), 23 deletions(-) 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 -- 2.30.2