]> git.sesse.net Git - vlc/commitdiff
configure: include sys/socket.h when checking HAVE_INET_PTON
authorKO Myung-Hun <komh78@gmail.com>
Tue, 2 Apr 2013 03:47:46 +0000 (12:47 +0900)
committerRafaël Carré <funman@videolan.org>
Tue, 2 Apr 2013 09:35:12 +0000 (11:35 +0200)
AF_INET is defined in sys/socket.h

Signed-off-by: Rafaël Carré <funman@videolan.org>
configure.ac

index 6b44139d2fe35a7d6f79a9650d7421b77d9f7264..b04cbf006cc6af9cf89ec5444ab6a812f31c7b55 100644 (file)
@@ -595,6 +595,7 @@ AC_LINK_IFELSE([
     AC_LANG_PROGRAM([#ifdef WIN32
         #include <ws2tcpip.h>
         #else
+        #include <sys/socket.h>
         #include <arpa/inet.h>
         #endif], [
         char dst[[sizeof(struct in_addr)]];