[LTP] [PATCH COMMITTED] lapi/socket.h: provide SO_REUSEPORT definition for older distros

Jan Stancek jstancek@redhat.com
Fri Mar 15 23:03:28 CET 2019


Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 include/lapi/socket.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/socket.h b/include/lapi/socket.h
index d58c460f141b..4e856dfb3183 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
-- 
1.8.3.1



More information about the ltp mailing list