From e9e3dce3230fed53ea5f8043fd0bf611861fbb5f Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 7 Jul 2009 15:30:45 -0700 Subject: [PATCH] rid -Wall arpa/inet.h:89: warning on FreeBSD --- src/sigar.c | 5 ++++- src/sigar_format.c | 6 +----- 2 files changed, 5 insertions(+), 6 deletions(-) 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,