diff options
author | Eric Camachat <eric@camachat.org> | 2023-04-13 21:11:28 +0000 |
---|---|---|
committer | Adriaan de Groot <adridg@FreeBSD.org> | 2023-04-18 15:12:06 +0000 |
commit | c441af2f42ffc6ff3d0412cb01b5e2821910160b (patch) | |
tree | e2a270788ff583ed75f18b1be1a266bdd2455c02 | |
parent | dc0054ed34b023c0331488489092177c1620ec56 (diff) | |
download | ports-c441af2f42ffc6ff3d0412cb01b5e2821910160b.tar.gz ports-c441af2f42ffc6ff3d0412cb01b5e2821910160b.zip |
x11-toolkits/wxgtk30: fix build with clang 16
Tests that are done by configure need an extra header.
Reported by: Eric Camachat
PR: 270476
-rw-r--r-- | x11-toolkits/wxgtk30/files/patch-configure | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/x11-toolkits/wxgtk30/files/patch-configure b/x11-toolkits/wxgtk30/files/patch-configure index 5174df78151d..1a79b94eefb6 100644 --- a/x11-toolkits/wxgtk30/files/patch-configure +++ b/x11-toolkits/wxgtk30/files/patch-configure @@ -17,7 +17,15 @@ /usr/local/include \ /usr/local/X11/include \ /usr/local/include/X11 \ -@@ -31499,9 +31500,6 @@ $as_echo "$as_me: WARNING: BeOS threads are not yet su +@@ -22421,6 +22422,7 @@ else + + #include <png.h> + #include <stdio.h> ++ #include <stdlib.h> + + int main() + { +@@ -31499,9 +31501,6 @@ $as_echo "$as_me: WARNING: BeOS threads are not yet su THREAD_OPTS="-pthreads $THREAD_OPTS" fi ;; @@ -27,7 +35,7 @@ *-*-darwin* | *-*-cygwin* ) THREAD_OPTS="" ;; -@@ -32764,8 +32762,8 @@ else +@@ -32764,8 +32763,8 @@ else fi fi fi @@ -37,7 +45,7 @@ if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then $as_echo "#define WXWIN_COMPATIBILITY_2_6 1" >>confdefs.h -@@ -39001,6 +38999,7 @@ fi +@@ -39001,6 +39000,7 @@ fi ;; powerpc-apple-macos* | \ @@ -45,7 +53,7 @@ *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-gnu* | *-*-k*bsd*-gnu | \ *-*-mirbsd* | \ *-*-sunos4* | \ -@@ -39042,6 +39041,7 @@ fi +@@ -39042,6 +39042,7 @@ fi case "${BAKEFILE_HOST}" in *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |