diff --git a/src/sigar.c b/src/sigar.c index 40e4452b..594be6cf 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -17,6 +17,11 @@ */ #include +#ifndef WIN32 +#include +#include +#include +#endif #include "sigar.h" #include "sigar_private.h" @@ -1415,9 +1420,7 @@ int sigar_resource_limit_get(sigar_t *sigar, #if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__) && !defined(NETWARE) /* XXX: prolly will be moving these stuffs into os_net.c */ -#include #include -#include #include #ifndef SIOCGIFCONF @@ -1870,7 +1873,6 @@ SIGAR_DECLARE(int) sigar_net_address_equals(sigar_net_address_t *addr1, } #if !defined(WIN32) && !defined(NETWARE) && !defined(__hpux) -#include #define sigar_inet_ntop inet_ntop #define sigar_inet_ntop_errno errno #else