X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fcommon.h;h=f45eaffd4474894390f8d1142eb2796cdcefb61d;hb=7c1ca7a0f745ba9db79668269ee2b851edcfb677;hp=469ef3e21a005cfd73922a95cdb37205262b3898;hpb=7b7b8c93445a962375b17f1b22d1fb1b1f693484;p=m6w6%2Flibmemcached diff --git a/libmemcached/common.h b/libmemcached/common.h index 469ef3e2..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 @@ -70,6 +74,13 @@ #include +#ifdef HAVE_POLL_H +#include +#else +#include "poll/poll.h" +#endif + + #ifdef __cplusplus extern "C" { #endif @@ -109,6 +120,7 @@ memcached_return_t memcached_server_execute(memcached_st *ptr, #ifdef __cplusplus #include #include +#include #endif #include @@ -157,14 +169,6 @@ memcached_return_t memcached_key_test(const memcached_st& memc, LIBMEMCACHED_LOCAL memcached_return_t memcached_purge(memcached_server_write_instance_st ptr); -LIBMEMCACHED_LOCAL - memcached_server_st *__server_create_with(const memcached_st *memc, - memcached_server_write_instance_st host, - const char *hostname, - in_port_t port, - uint32_t weight, - memcached_connection_t type); - static inline memcached_return_t memcached_validate_key_length(size_t key_length, bool binary) {