Date: Fri, 27 Aug 2021 06:24:44 GMT From: Gerald Pfeifer <gerald@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 3353a8922aea - main - emulators/wine-devel: Fix the build in dlls/nsiproxy.sys Message-ID: <202108270624.17R6Oie6052969@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by gerald: URL: https://cgit.FreeBSD.org/ports/commit/?id=3353a8922aea80f5b78b3526b5ba45483ae29017 commit 3353a8922aea80f5b78b3526b5ba45483ae29017 Author: Gerald Pfeifer <gerald@FreeBSD.org> AuthorDate: 2021-08-27 06:24:25 +0000 Commit: Gerald Pfeifer <gerald@FreeBSD.org> CommitDate: 2021-08-27 06:24:25 +0000 emulators/wine-devel: Fix the build in dlls/nsiproxy.sys In what looks like a change between FreeBSD 11 and FreeBSD 12 and later we now need to explicitly include sys/queue.h to avoid In file included from dlls/nsiproxy.sys/tcp.c:42: /usr/include/netinet/tcp_var.h:516:2: error: expected specifier-qualifier-list before 'TAILQ_ENTRY' 516 | TAILQ_ENTRY(tcptw) tw_2msl; I submitted this upstream already where it got accepted, so this patch files/patch-dlls-nsiproxy.sys is only a temporary stop gap. --- emulators/wine-devel/files/patch-dlls-nsiproxy.sys | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/emulators/wine-devel/files/patch-dlls-nsiproxy.sys b/emulators/wine-devel/files/patch-dlls-nsiproxy.sys new file mode 100644 index 000000000000..c73499fa7810 --- /dev/null +++ b/emulators/wine-devel/files/patch-dlls-nsiproxy.sys @@ -0,0 +1,37 @@ +This patch of mine has been accepted upstream already. + +commit a1cc71207cd22d7d884f44d135d975d981fa21e6 +Author: Gerald Pfeifer <gerald@pfeifer.com> +Date: Tue Aug 24 14:53:47 2021 +0200 + + nsiproxy: Include sys/queue.h from tcp.c. + + In what looks like a change between FreeBSD 11 and later versions + (FreeBSD 12 and 13), we now need to explicitly include sys/queue.h + to avoid + + In file included from dlls/nsiproxy.sys/tcp.c:42: + /usr/include/netinet/tcp_var.h:516:2: error: + expected specifier-qualifier-list before 'TAILQ_ENTRY' + 516 | TAILQ_ENTRY(tcptw) tw_2msl; + + Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com> + Signed-off-by: Huw Davies <huw@codeweavers.com> + Signed-off-by: Alexandre Julliard <julliard@winehq.org> + +--- UTC +diff --git dlls/nsiproxy.sys/tcp.c dlls/nsiproxy.sys/tcp.c +index 8567330be99..603aefadfe9 100644 +--- dlls/nsiproxy.sys/tcp.c ++++ dlls/nsiproxy.sys/tcp.c +@@ -58,6 +58,10 @@ + #include <netinet/ip_var.h> + #endif + ++#ifdef HAVE_SYS_QUEUE_H ++#include <sys/queue.h> ++#endif ++ + #ifdef HAVE_NETINET_TCP_VAR_H + #include <netinet/tcp_var.h> + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108270624.17R6Oie6052969>