projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
First push of example C++ interface.
[m6w6/libmemcached]
/
lib
/
common.h
diff --git
a/lib/common.h
b/lib/common.h
index 76c734ed1fe25c4c7bd7ab294818ea07bfc174ab..35775ba8e873ac58f6f3fa901d8569a0a7a74d26 100644
(file)
--- a/
lib/common.h
+++ b/
lib/common.h
@@
-17,11
+17,22
@@
#include <unistd.h>
#include <limits.h>
#include <assert.h>
#include <unistd.h>
#include <limits.h>
#include <assert.h>
-#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/un.h>
#include <netinet/tcp.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/un.h>
#include <netinet/tcp.h>
+#include "libmemcached_config.h"
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
@@
-49,6
+60,7
@@
typedef enum {
MEM_USE_CRC= (1 << 5),
MEM_USE_CACHE_LOOKUPS= (1 << 6),
MEM_SUPPORT_CAS= (1 << 7),
MEM_USE_CRC= (1 << 5),
MEM_USE_CACHE_LOOKUPS= (1 << 6),
MEM_SUPPORT_CAS= (1 << 7),
+ MEM_BUFFER_REQUESTS= (1 << 8),
} memcached_flags;
/* Hashing algo */
} memcached_flags;
/* Hashing algo */