]> granicus.if.org Git - php/commitdiff
Fix getifaddrs detection on NetBSD
authorMatteo Beccati <mbeccati@php.net>
Tue, 28 Nov 2017 14:35:14 +0000 (15:35 +0100)
committerMatteo Beccati <mbeccati@php.net>
Tue, 28 Nov 2017 14:42:33 +0000 (15:42 +0100)
ext/standard/config.m4

index 8642fb2aeecdd62dbc62423d08dd79e41e3f37a1..a4d6ccf1e6de5c599c38367b7ae51c7004cf64b2 100644 (file)
@@ -454,6 +454,7 @@ dnl
 AC_CHECK_HEADERS([net/if.h netdb.h])
 AC_MSG_CHECKING([for usable getifaddrs])
 AC_TRY_LINK([
+  #include <sys/types.h>
   #include <ifaddrs.h>
 ],[
   struct ifaddrs *interfaces;