Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2017 08:27:28 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r436573 - in head/emulators/wine: . files
Message-ID:  <201703210827.v2L8RSwp001920@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius (src committer)
Date: Tue Mar 21 08:27:28 2017
New Revision: 436573
URL: https://svnweb.freebsd.org/changeset/ports/436573

Log:
  Make it compilable on FreeBSD 12 after struct inpcb and struct tcpcb were
  stopped being exported.

Added:
  head/emulators/wine/files/patch-dlls_iphlpapi_ipstats.c   (contents, props changed)
Modified:
  head/emulators/wine/Makefile

Modified: head/emulators/wine/Makefile
==============================================================================
--- head/emulators/wine/Makefile	Tue Mar 21 08:26:58 2017	(r436572)
+++ head/emulators/wine/Makefile	Tue Mar 21 08:27:28 2017	(r436573)
@@ -3,6 +3,7 @@
 
 PORTNAME=	wine
 DISTVERSION=	2.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	emulators
 MASTER_SITES=	SF/${PORTNAME}/Source \

Added: head/emulators/wine/files/patch-dlls_iphlpapi_ipstats.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/wine/files/patch-dlls_iphlpapi_ipstats.c	Tue Mar 21 08:27:28 2017	(r436573)
@@ -0,0 +1,46 @@
+--- dlls/iphlpapi/ipstats.c.orig	2017-03-21 00:03:25.304042000 -0700
++++ dlls/iphlpapi/ipstats.c	2017-03-21 00:09:42.312023000 -0700
+@@ -2233,6 +2233,15 @@
+              pXIG->xig_len > sizeof (struct xinpgen);
+              pXIG = (struct xinpgen *)((char *)pXIG + pXIG->xig_len))
+         {
++#if __FreeBSD_version >= 1200026
++            struct xtcpcb *pTCPData;
++            struct xinpcb *pINData;
++            struct xsocket *pSockData;
++
++            pTCPData = (struct xtcpcb *)pXIG;
++            pINData = &pTCPData->xt_inp;
++            pSockData = &pINData->xi_socket;
++#else
+             struct tcpcb *pTCPData = NULL;
+             struct inpcb *pINData;
+             struct xsocket *pSockData;
+@@ -2240,6 +2249,7 @@
+             pTCPData = &((struct xtcpcb *)pXIG)->xt_tp;
+             pINData = &((struct xtcpcb *)pXIG)->xt_inp;
+             pSockData = &((struct xtcpcb *)pXIG)->xt_socket;
++#endif
+ 
+             /* Ignore sockets for other protocols */
+             if (pSockData->xso_protocol != IPPROTO_TCP)
+@@ -2509,11 +2519,19 @@
+              pXIG->xig_len > sizeof (struct xinpgen);
+              pXIG = (struct xinpgen *)((char *)pXIG + pXIG->xig_len))
+         {
++#if __FreeBSD_version >= 1200026
++            struct xinpcb *pINData;
++            struct xsocket *pSockData;
++
++            pINData = (struct xinpcb *)pXIG;
++            pSockData = &pINData->xi_socket;
++#else
+             struct inpcb *pINData;
+             struct xsocket *pSockData;
+ 
+             pINData = &((struct xinpcb *)pXIG)->xi_inp;
+             pSockData = &((struct xinpcb *)pXIG)->xi_socket;
++#endif
+ 
+             /* Ignore sockets for other protocols */
+             if (pSockData->xso_protocol != IPPROTO_UDP)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703210827.v2L8RSwp001920>