diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index adc1c6359..da033b9a3 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -39,6 +39,10 @@ * This file has functions to get queries from clients. */ #include "config.h" +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#include #include "services/listen_dnsport.h" #include "services/outside_network.h" #include "util/netevent.h" @@ -46,9 +50,6 @@ #include "util/config_file.h" #include "util/net_help.h" -#ifdef HAVE_SYS_TYPES_H -# include -#endif #ifdef HAVE_NETDB_H #include #endif diff --git a/services/outbound_list.c b/services/outbound_list.c index 80928dec4..be4914904 100644 --- a/services/outbound_list.c +++ b/services/outbound_list.c @@ -40,6 +40,7 @@ * queries it has outstanding to authoritative servers. */ #include "config.h" +#include #include "services/outbound_list.h" #include "services/outside_network.h" diff --git a/services/outside_network.c b/services/outside_network.c index 3725c636b..aeb44971a 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -41,6 +41,10 @@ */ #include "config.h" #include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#include #include "ldns/wire2host.h" #include "services/outside_network.h" #include "services/listen_dnsport.h" @@ -55,9 +59,6 @@ #include "util/random.h" #include "util/fptr_wlist.h" -#ifdef HAVE_SYS_TYPES_H -# include -#endif #ifdef HAVE_NETDB_H #include #endif