diff options
author | glewis <glewis@FreeBSD.org> | 2019-09-29 09:01:19 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2019-09-29 09:01:19 +0800 |
commit | 6f5c4205672016e0b40b61ad18e56956c3aa99c6 (patch) | |
tree | 934cfb5e8e1602fccf03100d8f885378fa0a2577 /java | |
parent | 0f6d5d96758c73c5004ae543ed86656d0105d321 (diff) | |
download | freebsd-ports-gnome-6f5c4205672016e0b40b61ad18e56956c3aa99c6.tar.gz freebsd-ports-gnome-6f5c4205672016e0b40b61ad18e56956c3aa99c6.tar.zst freebsd-ports-gnome-6f5c4205672016e0b40b61ad18e56956c3aa99c6.zip |
Fix build on 12+
* On FreeBSD, the correct cmsg_level for IP_RECVORIGDSTADDR is IP_PROTOIP.
Diffstat (limited to 'java')
-rw-r--r-- | java/netty/files/patch-netty_unix_socket.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/netty/files/patch-netty_unix_socket.c b/java/netty/files/patch-netty_unix_socket.c new file mode 100644 index 000000000000..c66f77191199 --- /dev/null +++ b/java/netty/files/patch-netty_unix_socket.c @@ -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) { |