diff -Naur ocaml-3.08.3.orig/otherlibs/threads/unix.ml ocaml-3.08.3.patched/otherlibs/threads/unix.ml --- ocaml-3.08.3.orig/otherlibs/threads/unix.ml Sat Nov 6 11:14:58 2004 +++ ocaml-3.08.3.patched/otherlibs/threads/unix.ml Sun Jul 10 17:54:35 2005 @@ -544,6 +544,7 @@ SO_DEBUG | SO_BROADCAST | SO_REUSEADDR + | SO_REUSEPORT | SO_KEEPALIVE | SO_DONTROUTE | SO_OOBINLINE diff -Naur ocaml-3.08.3.orig/otherlibs/unix/sockopt.c ocaml-3.08.3.patched/otherlibs/unix/sockopt.c --- ocaml-3.08.3.orig/otherlibs/unix/sockopt.c Mon Jan 17 19:10:36 2005 +++ ocaml-3.08.3.patched/otherlibs/unix/sockopt.c Sun Jul 10 17:56:34 2005 @@ -35,6 +35,9 @@ #ifndef SO_REUSEADDR #define SO_REUSEADDR (-1) #endif +#ifndef SO_REUSEPORT +#define SO_REUSEPORT (-1) +#endif #ifndef SO_KEEPALIVE #define SO_KEEPALIVE (-1) #endif @@ -76,7 +79,7 @@ #endif static int sockopt_bool[] = { - SO_DEBUG, SO_BROADCAST, SO_REUSEADDR, SO_KEEPALIVE, + SO_DEBUG, SO_BROADCAST, SO_REUSEADDR, SO_REUSEPORT, SO_KEEPALIVE, SO_DONTROUTE, SO_OOBINLINE, SO_ACCEPTCONN }; static int sockopt_int[] = { diff -Naur ocaml-3.08.3.orig/otherlibs/unix/unix.ml ocaml-3.08.3.patched/otherlibs/unix/unix.ml --- ocaml-3.08.3.orig/otherlibs/unix/unix.ml Sat Nov 6 11:14:58 2004 +++ ocaml-3.08.3.patched/otherlibs/unix/unix.ml Sun Jul 10 17:57:40 2005 @@ -436,6 +436,7 @@ SO_DEBUG | SO_BROADCAST | SO_REUSEADDR + | SO_REUSEPORT | SO_KEEPALIVE | SO_DONTROUTE | SO_OOBINLINE diff -Naur ocaml-3.08.3.orig/otherlibs/unix/unix.mli ocaml-3.08.3.patched/otherlibs/unix/unix.mli --- ocaml-3.08.3.orig/otherlibs/unix/unix.mli Wed Dec 22 17:11:13 2004 +++ ocaml-3.08.3.patched/otherlibs/unix/unix.mli Sun Jul 10 18:05:16 2005 @@ -988,6 +988,7 @@ SO_DEBUG (** Record debugging information *) | SO_BROADCAST (** Permit sending of broadcast messages *) | SO_REUSEADDR (** Allow reuse of local addresses for bind *) + | SO_REUSEPORT | SO_KEEPALIVE (** Keep connection active *) | SO_DONTROUTE (** Bypass the standard routing algorithms *) | SO_OOBINLINE (** Leave out-of-band data in line *) diff -Naur ocaml-3.08.3.orig/otherlibs/unix/unixLabels.mli ocaml-3.08.3.patched/otherlibs/unix/unixLabels.mli --- ocaml-3.08.3.orig/otherlibs/unix/unixLabels.mli Fri Jul 2 11:37:17 2004 +++ ocaml-3.08.3.patched/otherlibs/unix/unixLabels.mli Sun Jul 10 17:58:36 2005 @@ -1003,6 +1003,7 @@ SO_DEBUG (** Record debugging information *) | SO_BROADCAST (** Permit sending of broadcast messages *) | SO_REUSEADDR (** Allow reuse of local addresses for bind *) + | SO_REUSEPORT | SO_KEEPALIVE (** Keep connection active *) | SO_DONTROUTE (** Bypass the standard routing algorithms *) | SO_OOBINLINE (** Leave out-of-band data in line *)