]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Ensure sys/un.h autoconf detection includes sys/socket.h
authorAdriaan de Jong <dejong@fox-it.com>
Thu, 12 Apr 2012 06:50:12 +0000 (08:50 +0200)
committerDavid Sommerseth <davids@redhat.com>
Thu, 26 Apr 2012 18:46:38 +0000 (20:46 +0200)
This is required to build an Android binary.

Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
configure.ac

index 773fa4b77b32d23766b0d6308035492bc7e67050..8ac5ac4b3f4921883331e1833d9273b81b930559 100644 (file)
@@ -363,7 +363,7 @@ AC_CHECK_HEADERS([ \
        windows.h winsock2.h ws2tcpip.h \
 ])
 AC_CHECK_HEADERS([ \
-       sys/time.h sys/un.h sys/ioctl.h sys/stat.h \
+       sys/time.h sys/ioctl.h sys/stat.h \
        sys/mman.h sys/file.h \
        unistd.h signal.h libgen.h stropts.h \
        syslog.h pwd.h grp.h \
@@ -402,7 +402,7 @@ SOCKET_INCLUDES="
 "
 
 AC_CHECK_HEADERS(
-       [net/if.h netinet/ip.h netinet/if_ether.h resolv.h],
+       [net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h],
        ,
        ,
        [[${SOCKET_INCLUDES}]]