summaryrefslogtreecommitdiff
path: root/dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch
blob: 048e28d1d6bc5caed044206ce56246b4c25c98d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/src/unix/lwt_unix.cppo.ml	2021-10-01 20:35:45.285987395 +0200
+++ b/src/unix/lwt_unix.cppo.ml	2021-10-01 20:36:19.570493202 +0200
@@ -1819,6 +1819,9 @@
   | SO_ACCEPTCONN
   | TCP_NODELAY
   | IPV6_ONLY
+#if OCAML_VERSION >= (4, 12, 0)
+  | SO_REUSEPORT
+#endif
 
 type socket_int_option =
   Unix.socket_int_option =
--- a/src/unix/lwt_unix.cppo.mli	2021-10-01 20:33:57.558539065 +0200
+++ b/src/unix/lwt_unix.cppo.mli	2021-10-01 20:35:30.393202008 +0200
@@ -1008,6 +1008,9 @@
   | SO_ACCEPTCONN
   | TCP_NODELAY
   | IPV6_ONLY
+#if OCAML_VERSION >= (4, 12, 0)
+  | SO_REUSEPORT
+#endif
 
 type socket_int_option =
     Unix.socket_int_option =