1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

The patch file was missed in previous commit.

This commit is contained in:
Gleb Smirnoff 2017-03-21 08:26:01 +00:00
parent daa099b848
commit 7179e712d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436571

View File

@ -0,0 +1,26 @@
--- proc.c.orig 2017-03-21 00:13:06.166567000 -0700
+++ proc.c 2017-03-21 00:14:38.957451000 -0700
@@ -175,7 +175,11 @@
struct xinpgen *xig, *exig, *txig;
struct xtcpcb *xtp;
+#if __FreeBSD_version >= 1200026
+ struct xinpcb *inp;
+#else
struct inpcb *inp;
+#endif
struct xsocket *so;
if (proc_freebsd_getfiles(&xfiles, &nxfiles) == -1) {
@@ -197,7 +201,11 @@
return -1;
}
inp = &xtp->xt_inp;
+#if __FreeBSD_version >= 1200026
+ so = &inp->xi_socket;
+#else
so = &xtp->xt_socket;
+#endif
if (!(so->so_state & SS_ISCONNECTED))
/* we are only interested in connected sockets */