From d4205d36fd588a8e7b78014ef17156a43d2b2dd0 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 10 Apr 2019 14:59:01 +0200 Subject: [PATCH] Additional fix for missing SO_REUSEPORT edge_utils already fixed in 77392f8e53418832b6c8c4f7e81c3243c0749f12 --- edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edge.c b/edge.c index c922d7f..22e1428 100644 --- a/edge.c +++ b/edge.c @@ -730,7 +730,7 @@ int main(int argc, char* argv[]) { /* allow multiple sockets to use the same PORT number */ setsockopt(eee.udp_multicast_sock, SOL_SOCKET, SO_REUSEADDR, &enable_reuse, sizeof(enable_reuse)); -#ifndef WIN32 /* no SO_REUSEPORT in Windows */ +#ifdef SO_REUSEPORT /* no SO_REUSEPORT in Windows / old linux versions */ setsockopt(eee.udp_multicast_sock, SOL_SOCKET, SO_REUSEPORT, &enable_reuse, sizeof(enable_reuse)); #endif