diff options
author | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-09-28 17:11:09 +0200 |
---|---|---|
committer | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-09-28 17:11:09 +0200 |
commit | ed6d9fb18359f284921fc1e17c0608d2182641b0 (patch) | |
tree | 7537794cb5076fb094bb6be5534630e8baff593c /daemon/network.c | |
parent | lib/dnssec: cleanup (diff) | |
download | knot-resolver-ed6d9fb18359f284921fc1e17c0608d2182641b0.tar.xz knot-resolver-ed6d9fb18359f284921fc1e17c0608d2182641b0.zip |
daemon/network: REUSEPORT check for libuv 1.7.0+ (which defines VERSION_HEX)
Diffstat (limited to 'daemon/network.c')
-rw-r--r-- | daemon/network.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/network.c b/daemon/network.c index a7bd16a8..81a528fc 100644 --- a/daemon/network.c +++ b/daemon/network.c @@ -19,8 +19,7 @@ #include "daemon/io.h" /* libuv 1.7.0+ is able to support SO_REUSEPORT for loadbalancing */ -#define UV_VERSION_NUM UV_VERSION_MAJOR ## UV_VERSION_MINOR ## UV_VERSION_PATCH -#if (defined(ENABLE_REUSEPORT) || UV_VERSION_NUM >= 170) && (__linux__ && SO_REUSEPORT) +#if (defined(ENABLE_REUSEPORT) || defined(UV_VERSION_HEX)) && (__linux__ && SO_REUSEPORT) #define handle_init(type, loop, handle, family) do { \ uv_ ## type ## _init_ex((loop), (handle), (family)); \ uv_os_fd_t fd = 0; \ |