X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol%2Fcommon.h;h=185aef0b5c7f04d69835ac4a007a81c906b60dac;hb=3dee67d04099cc5e2986ed94aa612f429f54d6fb;hp=48782a0c735cf85bc00b9b059b8f5e6c4e2a9b44;hpb=0438a012ce75f5067aa95638519a30706494ab74;p=awesomized%2Flibmemcached diff --git a/libmemcached/protocol/common.h b/libmemcached/protocol/common.h index 48782a0c..185aef0b 100644 --- a/libmemcached/protocol/common.h +++ b/libmemcached/protocol/common.h @@ -3,9 +3,10 @@ #define LIBMEMCACHED_PROTOCOL_COMMON_H #include "config.h" -#include +#if !defined(__cplusplus) +# include +#endif #include -#include /* Define this here, which will turn on the visibilty controls while we're * building libmemcached. @@ -92,12 +93,12 @@ enum ascii_cmd { VERSION_CMD, QUIT_CMD, VERBOSITY_CMD, - UNKNOWN_CMD, + UNKNOWN_CMD }; struct memcached_protocol_client_st { memcached_protocol_st *root; - int sock; + memcached_socket_t sock; int error; /* Linked list of data to send */