diff --git a/src/sigar.c b/src/sigar.c index 574b6acb..b3ab7657 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -20,13 +20,16 @@ #include #ifndef WIN32 -#include +#include #include #include #endif #if defined(__OpenBSD__) || defined(__FreeBSD__) #include #endif +#ifndef WIN32 +#include +#endif #include "sigar.h" #include "sigar_private.h" diff --git a/src/sigar_format.c b/src/sigar_format.c index a89a2a18..f7642c4a 100644 --- a/src/sigar_format.c +++ b/src/sigar_format.c @@ -28,6 +28,7 @@ #include #ifndef WIN32 +#include #include #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_AIX) #include @@ -292,11 +293,6 @@ SIGAR_DECLARE(int) sigar_uptime_string(sigar_t *sigar, return SIGAR_OK; } - -#ifndef WIN32 -#include -#endif - /* threadsafe alternative to inet_ntoa (inet_ntop4 from apr) */ int sigar_inet_ntoa(sigar_t *sigar, sigar_uint32_t address,