From 37a8000aa2ebf8ed6fce667950cff3d850691c18 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 15 Jun 2018 18:23:13 -0400 Subject: [PATCH] Protect some more headers for inclusion --- common/fko_util.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/common/fko_util.c b/common/fko_util.c index 6e665b6e..3a72cfb7 100644 --- a/common/fko_util.c +++ b/common/fko_util.c @@ -35,9 +35,15 @@ #ifndef WIN32 /* for inet_aton() IP validation */ - #include - #include - #include +# if HAVE_SYS_SOCKET_H +# include +#endif +# if HAVE_NETINET_IN_H +# include +# endif +# if HAVE_ARPA_INET_H +# include +# endif #endif /* Check for a FKO error returned by a function an return the error code */