fix win32 build

This commit is contained in:
Doug MacEachern 2007-05-19 04:13:01 +00:00
parent 67275223f3
commit cb1138b987
1 changed files with 4 additions and 3 deletions

View File

@ -24,13 +24,12 @@
#include "sigar_os.h" #include "sigar_os.h"
#include <errno.h> #include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <stdio.h> #include <stdio.h>
#ifndef WIN32 #ifndef WIN32
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #include <pwd.h>
#include <grp.h>
int sigar_user_name_get(sigar_t *sigar, int uid, char *buf, int buflen) 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; return SIGAR_OK;
} }
#endif /* WIN32 */
static char *sigar_error_string(int err) static char *sigar_error_string(int err)
{ {
switch (err) { switch (err) {