Sam Roberts
2/8/2005 4:12:00 AM
I need SO_REUSEPORT, but there seems to be a bunch of unsupported socket
options on OS X. Shall I post a patch for the whole lot?
Sam
Index: socket.c
===================================================================
RCS file: /src/ruby/ext/socket/socket.c,v
retrieving revision 1.108.2.20
diff -u -r1.108.2.20 socket.c
--- socket.c 9 Dec 2004 23:39:37 -0000 1.108.2.20
+++ socket.c 8 Feb 2005 04:06:12 -0000
@@ -2796,6 +2796,9 @@
sock_define_const("SO_DEBUG", SO_DEBUG);
#endif
sock_define_const("SO_REUSEADDR", SO_REUSEADDR);
+#ifdef SO_REUSEPORT
+ sock_define_const("SO_REUSEPORT", SO_REUSEPORT);
+#endif
#ifdef SO_TYPE
sock_define_const("SO_TYPE", SO_TYPE);
#endif