#define LIBMEMCACHED_PROTOCOL_COMMON_H
#include "config.h"
-#include <stdbool.h>
+#if !defined(__cplusplus)
+# include <stdbool.h>
+#endif
#include <assert.h>
-#include <netinet/in.h>
/* Define this here, which will turn on the visibilty controls while we're
* building libmemcached.
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 */