From c04af84fd3984315f84ae9cca11ebfef544213d9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 15 Dec 2005 00:20:27 +0000 Subject: [PATCH] fix win32 compile --- src/sigar_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sigar_util.c b/src/sigar_util.c index 191b1dee..d19b9065 100644 --- a/src/sigar_util.c +++ b/src/sigar_util.c @@ -510,6 +510,10 @@ SIGAR_DECLARE(int) sigar_nfs_ping(char *host) #define vsnprintf _vsnprintf #endif +#ifdef WIN32 +# define rindex strrchr +#endif + static int proc_module_get_self(void *data, char *name, int len) { sigar_t *sigar = (sigar_t *)data;