rid -Wall arpa/inet.h:89: warning on FreeBSD

This commit is contained in:
Doug MacEachern committed 2009-07-07 15:30:45 -07:00
1 parent d048e0ccdc
commit e9e3dce323
2 files changed
+5 -6

No files matched your search

+4 -1
View File
@@ -20,13 +20,16 @@
#include <stdio.h>
#ifndef WIN32
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#endif
#if defined(__OpenBSD__) || defined(__FreeBSD__)
#include <netinet/in.h>
#endif
#ifndef WIN32
#include <arpa/inet.h>
#endif
#include "sigar.h"
#include "sigar_private.h"
+1 -5
View File
@@ -28,6 +28,7 @@
#include <stdio.h>
#ifndef WIN32
#include <netinet/in.h>
#include <arpa/inet.h>
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_AIX)
#include <sys/socket.h>
@@ -292,11 +293,6 @@ SIGAR_DECLARE(int) sigar_uptime_string(sigar_t *sigar,
return SIGAR_OK;
}
#ifndef WIN32
#include <netinet/in.h>
#endif
/* threadsafe alternative to inet_ntoa (inet_ntop4 from apr) */
int sigar_inet_ntoa(sigar_t *sigar,
sigar_uint32_t address,