Since 6d67748154df21da9e343feb9d58e28c1ba0a63b in wine
(wine-6.20-29-g6d67748154d, Oct 25, 2021), imported to mingw-w64
in 826215b4e0b54fe459bce203024fe50ec883cad8, widl requires sys/sysctl.h
on FreeBSD.

Wine does have a configure check for this header, but the mingw-w64-tools
wrapping didn't. Add a check for this header, so that the existing
"#ifdef HAVE_SYS_SYSCTL_H" in widl.c has a chance of succeeding.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-tools/widl/configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-tools/widl/configure.ac 
b/mingw-w64-tools/widl/configure.ac
index d64cee236..92a6b486e 100644
--- a/mingw-w64-tools/widl/configure.ac
+++ b/mingw-w64-tools/widl/configure.ac
@@ -46,7 +46,7 @@ AS_CASE([$host],
 # Checks for libraries.
 
 # Checks for header files.
-AC_CHECK_HEADERS([getopt.h io.h fcntl.h inttypes.h libintl.h limits.h malloc.h 
stddef.h stdlib.h string.h sys/time.h unistd.h])
+AC_CHECK_HEADERS([getopt.h io.h fcntl.h inttypes.h libintl.h limits.h malloc.h 
stddef.h stdlib.h string.h sys/sysctl.h sys/time.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
-- 
2.25.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to