diff options
author | glebius <glebius@FreeBSD.org> | 2017-03-22 15:15:18 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2017-04-09 20:54:01 +0800 |
commit | 182f0270b1a93ee9e643a664efb692bcd64a4172 (patch) | |
tree | ae5c1c788d57221d639c775047f4519f6c34f03a | |
parent | f052bf223d9048d2eeb17beb1dd14cab65561e0c (diff) | |
download | freebsd-ports-gnome-182f0270b1a93ee9e643a664efb692bcd64a4172.tar.gz freebsd-ports-gnome-182f0270b1a93ee9e643a664efb692bcd64a4172.tar.zst freebsd-ports-gnome-182f0270b1a93ee9e643a664efb692bcd64a4172.zip |
Fix build on FreeBSD 12, where structs inpcb and tcpcb are no longer exported
to userland, unless explicitly asked for.
Don't bump PORTREVISION, since this particular port needs to be recompiled
basicly anytime base is upgraded. It has too much knowledge about kernel
structures.
-rw-r--r-- | sysutils/lsof/files/patch-dlsof.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/lsof/files/patch-dlsof.h b/sysutils/lsof/files/patch-dlsof.h new file mode 100644 index 000000000000..1f18dac34ac9 --- /dev/null +++ b/sysutils/lsof/files/patch-dlsof.h @@ -0,0 +1,17 @@ +--- dialects/freebsd/dlsof.h.orig 2017-01-14 23:50:37.000000000 -0800 ++++ dialects/freebsd/dlsof.h 2017-03-22 00:12:47.309579000 -0700 +@@ -154,12 +154,14 @@ + #include <netinet/in_systm.h> + #include <netinet/ip.h> + #include <net/route.h> ++#define _WANT_INPCB + #include <netinet/in_pcb.h> + #include <netinet/ip_var.h> + #include <netinet/tcp.h> + #include <netinet/tcpip.h> + #include <netinet/tcp_fsm.h> + #include <netinet/tcp_timer.h> ++#define _WANT_TCPCB + #include <netinet/tcp_var.h> + #include <sys/ucred.h> + #include <sys/uio.h> |