svn commit: r513186 - head/java/netty/files
Greg Lewis
glewis at FreeBSD.org
Sun Sep 29 01:01:20 UTC 2019
Author: glewis
Date: Sun Sep 29 01:01:19 2019
New Revision: 513186
URL: https://svnweb.freebsd.org/changeset/ports/513186
Log:
Fix build on 12+
* On FreeBSD, the correct cmsg_level for IP_RECVORIGDSTADDR is IP_PROTOIP.
Added:
head/java/netty/files/patch-netty_unix_socket.c (contents, props changed)
Added: head/java/netty/files/patch-netty_unix_socket.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/java/netty/files/patch-netty_unix_socket.c Sun Sep 29 01:01:19 2019 (r513186)
@@ -0,0 +1,12 @@
+--- netty_unix_socket.c.orig 2019-09-28 17:55:20.362544000 -0700
++++ netty_unix_socket.c 2019-09-28 17:59:09.282432000 -0700
+@@ -389,6 +389,9 @@
+ }
+
+ #ifdef IP_RECVORIGDSTADDR
++#if defined(__FreeBSD__) && !defined(SOL_IP)
++#define SOL_IP IPPROTO_IP
++#endif /* __FreeBSD__ && !SOL_IP */
+ if (readLocalAddr) {
+ for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
+ if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_RECVORIGDSTADDR) {
More information about the svn-ports-all
mailing list