From cb1138b9876dd33f18eba2dc50ee411a2a7fcd8d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 19 May 2007 04:13:01 +0000 Subject: [PATCH] fix win32 build --- src/sigar_format.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sigar_format.c b/src/sigar_format.c index 6ca3a604..933a5539 100644 --- a/src/sigar_format.c +++ b/src/sigar_format.c @@ -24,13 +24,12 @@ #include "sigar_os.h" #include -#include -#include #include #ifndef WIN32 #include -#endif +#include +#include int sigar_user_name_get(sigar_t *sigar, int uid, char *buf, int buflen) { @@ -115,6 +114,8 @@ int sigar_user_id_get(sigar_t *sigar, const char *name, int *uid) return SIGAR_OK; } +#endif /* WIN32 */ + static char *sigar_error_string(int err) { switch (err) {