backout last change. sysctl swap stuff compiled on freebsd4 but doesnt work
This commit is contained in:
parent
6cd102f0d7
commit
bebaab7629
@ -288,18 +288,7 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
|
|||||||
|
|
||||||
#define SWI_MAXMIB 3
|
#define SWI_MAXMIB 3
|
||||||
|
|
||||||
#ifndef XSWDEV_VERSION
|
#ifdef SIGAR_FREEBSD5
|
||||||
#define XSWDEV_VERSION 1
|
|
||||||
struct xswdev {
|
|
||||||
u_int xsw_version;
|
|
||||||
udev_t xsw_dev;
|
|
||||||
int xsw_flags;
|
|
||||||
int xsw_nblks;
|
|
||||||
int xsw_used;
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
|
||||||
/* code in this function is based on FreeBSD 5.3 kvm_getswapinfo.c */
|
/* code in this function is based on FreeBSD 5.3 kvm_getswapinfo.c */
|
||||||
static int getswapinfo_sysctl(struct kvm_swap *swap_ary,
|
static int getswapinfo_sysctl(struct kvm_swap *swap_ary,
|
||||||
int swap_max)
|
int swap_max)
|
||||||
@ -365,6 +354,8 @@ static int getswapinfo_sysctl(struct kvm_swap *swap_ary,
|
|||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define getswapinfo_sysctl(swap_ary, swap_max) SIGAR_ENOTIMPL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int sigar_swap_get(sigar_t *sigar, sigar_swap_t *swap)
|
int sigar_swap_get(sigar_t *sigar, sigar_swap_t *swap)
|
||||||
|
Loading…
Reference in New Issue
Block a user