X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fcommon.h;h=53e083a433cd45f6849d4479fb5301d1a3e12734;hb=0ce6b69e0f8e25e50bd878678b1444651093bac4;hp=5c86eb16e01967360ccf3bef583e7a35cf66fb84;hpb=8e04e2a97ba16fce9ebf7d47a944de2dc40ba453;p=m6w6%2Flibmemcached diff --git a/libmemcached/common.h b/libmemcached/common.h index 5c86eb16..53e083a4 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -42,51 +42,69 @@ #pragma once -#include +#include #ifdef __cplusplus -# include -# include -# include -# include -# include -# include -# include +# include +# include +# include +# include +# include +# include +# include +# include #else -# ifdef HAVE_STDLIB_H -# include -# endif -# ifdef HAVE_STDLIB_H -# include -# endif -# include +# ifdef HAVE_STDDEF_H +# include +# endif +# ifdef HAVE_STDLIB_H +# include +# endif +# ifdef HAVE_STDLIB_H +# include +# endif +# include +# ifdef HAVE_TIME_H # include -# ifdef HAVE_ERRNO_H -# include -# endif -# ifdef HAVE_LIMITS_H -# include -# endif +# endif +# ifdef HAVE_ERRNO_H +# include +# endif +# ifdef HAVE_LIMITS_H +# include +# endif +#endif + +#ifdef HAVE_SYS_UN_H +# include +#endif + +#ifdef HAVE_SYS_TIME_H +# include #endif #ifdef HAVE_FCNTL_H -# include +# include #endif #ifdef HAVE_SYS_TYPES_H -# include +# include #endif #ifdef HAVE_UNISTD_H -# include +# include +#endif + +#ifdef HAVE_SYS_SOCKET_H +# include #endif #ifdef HAVE_STRINGS_H -# include +# include #endif #ifdef HAVE_DLFCN_H -# include +# include #endif #include @@ -102,6 +120,14 @@ # include "poll/poll.h" #endif +#ifndef POLLHUP +# define POLLHUP 0x0010 +#endif + +#ifndef POLLNVAL +# define POLLNVAL 0x0020 +#endif + #ifdef __cplusplus extern "C" { #endif