aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Stancek <jstancek@redhat.com>2019-03-15 22:55:19 +0100
committerJan Stancek <jstancek@redhat.com>2019-03-15 22:55:19 +0100
commit0619b30959aa7b1d0e3154f939d4cb6e2964fcf3 (patch)
treee0aa9be38aecb0333c6df5c0043acc1bff715452 /include
parent8528220c2a6fc0d0c55ef8f962a90597029323a7 (diff)
lapi/socket.h: provide SO_REUSEPORT definition for older distros
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/lapi/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/lapi/socket.h b/include/lapi/socket.h
index d58c460f1..4e856dfb3 100644
--- a/include/lapi/socket.h
+++ b/include/lapi/socket.h
@@ -29,6 +29,10 @@
# define MSG_FASTOPEN 0x20000000 /* Send data in TCP SYN */
#endif
+#ifndef SO_REUSEPORT
+# define SO_REUSEPORT 15
+#endif
+
#ifndef SO_BUSY_POLL
# define SO_BUSY_POLL 46
#endif