diff options
author | dormando <dormando@rydia.net> | 2020-11-11 11:17:48 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-11-11 11:17:48 -0800 |
commit | 27b73a4e272280b9a52bc1b098f758af69e28956 (patch) | |
tree | cd4e7304c5c90b0f71b973c94b6b3388968616a0 | |
parent | 4de258ed891c0e5048192be1626fff6fabb10438 (diff) | |
download | memcached-27b73a4e272280b9a52bc1b098f758af69e28956.tar.gz |
net: fix compile failures when missing NAPI define
was defined in memcached.c, but also used in thread.c.
-rw-r--r-- | memcached.c | 4 | ||||
-rw-r--r-- | memcached.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/memcached.c b/memcached.c index b5dc8c7..d84b0eb 100644 --- a/memcached.c +++ b/memcached.c @@ -61,10 +61,6 @@ #include <sys/sysctl.h> #endif -#ifndef SO_INCOMING_NAPI_ID -#define SO_INCOMING_NAPI_ID 56 -#endif - /* * forward declarations */ 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 |