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
/* for inet_aton() IP validation
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
# if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
# if HAVE_NETINET_IN_H
# include <netinet/in.h>
# endif
# if HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
#endif
/* Check for a FKO error returned by a function an return the error code */