apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1827534 - /apr/apr/trunk/configure.in
Date Thu, 22 Mar 2018 22:46:30 GMT
Author: ylavic
Date: Thu Mar 22 22:46:30 2018
New Revision: 1827534

URL: http://svn.apache.org/viewvc?rev=1827534&view=rev
Log:
configure: fix detection of net/if.h on openbsd.

Depends on sys/socket.h.
PR-61976.

Proposed by: David Carlier <devnexen gmail.com>
Reviewed by: ylavic

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1827534&r1=1827533&r2=1827534&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Thu Mar 22 22:46:30 2018
@@ -1070,8 +1070,14 @@ case $host in
 esac
 
 AC_CHECK_HEADERS([sys/types.h sys/mman.h sys/ipc.h sys/mutex.h \
-                  sys/shm.h sys/file.h kernel/OS.h os2.h windows.h \
-                  net/if.h])
+                  sys/shm.h sys/file.h sys/socket.h kernel/OS.h os2.h windows.h])
+AC_CHECK_HEADERS([net/if.h],[],[],
+[
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#include <net/if.h>
+])
 AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
                 create_area mprotect])
 



Mime
View raw message