summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Klimov <jimklimov@gmail.com>2022-08-08 15:04:50 +0200
committerJoe Orton <jorton@apache.org>2022-10-05 09:40:40 +0100
commit857ca19ec0adb9572bf5fdb210552e4ac0fa5c6d (patch)
treea2aea3d9e84675d1c6929c36633fc0b234563187
parentb54527bdb35f76a2707057d60f0c5119a8b89269 (diff)
downloadneon-git-857ca19ec0adb9572bf5fdb210552e4ac0fa5c6d.tar.gz
macros/neon.m4: fix checking for Windows headers
Lifted from https://build.opensuse.org/package/view_file/windows:mingw:win32/mingw32-libneon/neon-0.29.1-mingw.patch?expand=1
-rw-r--r--macros/neon.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 39261f6..af1410d 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -427,6 +427,7 @@ AC_CACHE_CHECK([for library containing $1], [ne_cv_libsfor_$1], [
LIBS=$ne_sl_save_LIBS
])
])
+AC_CHECK_HEADER(wspiapi.h)
if test "$ne_cv_libsfor_$1" = "not found"; then
m4_if([$4], [], [AC_MSG_ERROR([could not find library containing $1])], [$4])
@@ -748,6 +749,9 @@ AC_CHECK_TYPES(socklen_t,,
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
+#ifdef _WIN32
+# include <ws2tcpip.h>
+#endif
])
AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.__tm_gmtoff],,,