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,10 +35,16 @@
#ifndef WIN32
/* for inet_aton() IP validation
*/
# 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 */
#define RETURN_ON_FKO_ERROR(e, f) do { if (((e)=(f)) != FKO_SUCCESS) { return (e); } } while(0);