From 71829d95cee141c16d5bbc5f859fc940b937656c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 6 Apr 2007 18:01:50 +0000 Subject: [PATCH] shuffle includes to fix freebsd compile --- src/sigar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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