Additional fix for missing SO_REUSEPORT

edge_utils already fixed in 77392f8e53
This commit is contained in:
emanuele-f 2019-04-10 14:59:01 +02:00
parent e989f475a1
commit d4205d36fd

2
edge.c
View File

@ -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