diff options
Diffstat (limited to 'src/common/socket.h')
-rw-r--r-- | src/common/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/socket.h b/src/common/socket.h index 130c33d0c..a78b71ad1 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -14,6 +14,10 @@ #include <netinet/in.h> #endif #include <time.h> +// SO_REUSEPORT is predefined in FreeBSD in sys/socket.h so we only have to define if it's not +#ifndef SO_REUSEPORT +#define SO_REUSEPORT +#endif #include "malloc.h" |