OpenBSD tweaks
This commit is contained in:
parent
67323ea91b
commit
49962904ed
|
@ -24,6 +24,9 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include "sigar.h"
|
||||
#include "sigar_private.h"
|
||||
|
@ -939,7 +942,7 @@ static char *getpass(const char *prompt)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) || defined(DARWIN)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(DARWIN)
|
||||
# define ut_user ut_name
|
||||
#endif
|
||||
|
||||
|
@ -1243,7 +1246,8 @@ int sigar_resource_limit_get(sigar_t *sigar,
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__) && !defined(NETWARE)
|
||||
#if !defined(WIN32) && !defined(NETWARE) && \
|
||||
!defined(DARWIN) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
|
||||
/* XXX: prolly will be moving these stuffs into os_net.c */
|
||||
#include <sys/ioctl.h>
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
|
||||
#ifndef WIN32
|
||||
#include <arpa/inet.h>
|
||||
#ifdef __OpenBSD__
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue