--- projects/libstatgrab/src/libstatgrab/user_stats.c 2003/10/24 17:00:26 1.11 +++ projects/libstatgrab/src/libstatgrab/user_stats.c 2003/11/10 23:25:45 1.12 @@ -39,7 +39,7 @@ user_stat_t *get_user_stats(){ static user_stat_t user_stats; static int size_of_namelist=-1; char *tmp; -#if defined(SOLARIS) || defined(LINUX) +#if defined(SOLARIS) || defined(LINUX) || defined(CYGWIN) struct utmp *entry; #endif #ifdef ALLBSD @@ -59,7 +59,7 @@ user_stat_t *get_user_stats(){ /* Essentially blank the list, or give it a inital starting string */ strcpy(user_stats.name_list, ""); -#if defined(SOLARIS) || defined(LINUX) +#if defined(SOLARIS) || defined(LINUX) || defined(CYGWIN) setutent(); while((entry=getutent()) != NULL) { if(entry->ut_type==USER_PROCESS) {