X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol%2Fcommon.h;h=f7fa60448f5ac9e13aa3b1496e47ad8955678b1f;hb=3e49b97973fffed605aaa7a706c3ea0e23963ac2;hp=48782a0c735cf85bc00b9b059b8f5e6c4e2a9b44;hpb=7ed5aa2c6673ab92559e52a29e83c0a44f3beebc;p=awesomized%2Flibmemcached diff --git a/libmemcached/protocol/common.h b/libmemcached/protocol/common.h index 48782a0c..f7fa6044 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. @@ -97,7 +98,7 @@ enum ascii_cmd { struct memcached_protocol_client_st { memcached_protocol_st *root; - int sock; + memcached_socket_t sock; int error; /* Linked list of data to send */