Commit d26304d2 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rafaël Carré

configure: include sys/socket.h when checking HAVE_INET_PTON

AF_INET is defined in sys/socket.h
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 2f0e36e7
...@@ -595,6 +595,7 @@ AC_LINK_IFELSE([ ...@@ -595,6 +595,7 @@ AC_LINK_IFELSE([
AC_LANG_PROGRAM([#ifdef WIN32 AC_LANG_PROGRAM([#ifdef WIN32
#include <ws2tcpip.h> #include <ws2tcpip.h>
#else #else
#include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#endif], [ #endif], [
char dst[[sizeof(struct in_addr)]]; char dst[[sizeof(struct in_addr)]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment