From 34c19b60b9c1bb94ebff0a0986804bda4a6b576b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 17 Feb 2008 23:50:36 +0000 Subject: [PATCH] tweak for OpenBSD nfs stats --- src/os/darwin/darwin_sigar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 1826a02b..18b11918 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2528,7 +2528,13 @@ static int get_nfsstats(struct nfsstats *stats) } #endif -static void map_nfs_stats(sigar_nfs_v3_t *nfs, int *rpc) +#if defined(__OpenBSD__) +typedef uint64_t rpc_cnt_t; +#else +typedef int rpc_cnt_t; +#endif + +static void map_nfs_stats(sigar_nfs_v3_t *nfs, rpc_cnt_t *rpc) { nfs->null = rpc[NFSPROC_NULL]; nfs->getattr = rpc[NFSPROC_GETATTR];