Protect some more headers for inclusion

This commit is contained in:
Pierre Pronchery 2018-06-15 18:23:13 -04:00
parent a525734afc
commit 37a8000aa2

View File

@ -35,9 +35,15 @@
#ifndef WIN32 #ifndef WIN32
/* for inet_aton() IP validation /* for inet_aton() IP validation
*/ */
#include <sys/socket.h> # if HAVE_SYS_SOCKET_H
#include <netinet/in.h> # include <sys/socket.h>
#include <arpa/inet.h> #endif
# if HAVE_NETINET_IN_H
# include <netinet/in.h>
# endif
# if HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
#endif #endif
/* Check for a FKO error returned by a function an return the error code */ /* Check for a FKO error returned by a function an return the error code */