diff options
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index 210e55a87..6baa8bd0f 100644 --- a/src/config.h +++ b/src/config.h @@ -80,6 +80,10 @@ /* MSG_NOSIGNAL. */ #ifdef __linux__ #define HAVE_MSG_NOSIGNAL 1 +#if defined(SO_MARK) +#define HAVE_SOCKOPTMARKID 1 +#define SOCKOPTMARKID SO_MARK +#endif #endif /* Test for polling API */ @@ -113,6 +117,20 @@ #define redis_fsync(fd) fsync(fd) #endif +#if defined(__FreeBSD__) +#if defined(SO_USER_COOKIE) +#define HAVE_SOCKOPTMARKID 1 +#define SOCKOPTMARKID SO_USER_COOKIE +#endif +#endif + +#if defined(__OpenBSD__) +#if defined(SO_RTABLE) +#define HAVE_SOCKOPTMARKID 1 +#define SOCKOPTMARKID SO_RTABLE +#endif +#endif + #if __GNUC__ >= 4 #define redis_unreachable __builtin_unreachable #else |