summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-11-11 11:17:48 -0800
committerdormando <dormando@rydia.net>2020-11-11 11:17:48 -0800
commit27b73a4e272280b9a52bc1b098f758af69e28956 (patch)
treecd4e7304c5c90b0f71b973c94b6b3388968616a0 /memcached.h
parent4de258ed891c0e5048192be1626fff6fabb10438 (diff)
downloadmemcached-27b73a4e272280b9a52bc1b098f758af69e28956.tar.gz
net: fix compile failures when missing NAPI define
was defined in memcached.c, but also used in thread.c.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 17d2a8f..776f687 100644
--- a/memcached.h
+++ b/memcached.h
@@ -51,6 +51,11 @@
#include <openssl/ssl.h>
#endif
+/* for NAPI pinning feature */
+#ifndef SO_INCOMING_NAPI_ID
+#define SO_INCOMING_NAPI_ID 56
+#endif
+
/** Maximum length of a key. */
#define KEY_MAX_LENGTH 250