shuffle includes to fix freebsd compile
This commit is contained in:
parent
361624c484
commit
71829d95ce
@ -17,6 +17,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#ifndef WIN32
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "sigar.h"
|
#include "sigar.h"
|
||||||
#include "sigar_private.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)
|
#if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__) && !defined(NETWARE)
|
||||||
|
|
||||||
/* XXX: prolly will be moving these stuffs into os_net.c */
|
/* XXX: prolly will be moving these stuffs into os_net.c */
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <arpa/inet.h>
|
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
#ifndef SIOCGIFCONF
|
#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)
|
#if !defined(WIN32) && !defined(NETWARE) && !defined(__hpux)
|
||||||
#include <arpa/inet.h>
|
|
||||||
#define sigar_inet_ntop inet_ntop
|
#define sigar_inet_ntop inet_ntop
|
||||||
#define sigar_inet_ntop_errno errno
|
#define sigar_inet_ntop_errno errno
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user