freebsd who porting

This commit is contained in:
Doug MacEachern 2005-02-22 02:18:41 +00:00
parent 0b5e171b14
commit c69d504e77
1 changed files with 9 additions and 1 deletions

View File

@ -722,7 +722,15 @@ SIGAR_DECLARE(int) sigar_who_list_get(sigar_t *sigar,
# define ut_time ut_tv.tv_sec # define ut_time ut_tv.tv_sec
#else #else
# include <utmp.h> # include <utmp.h>
# ifdef UTMP_FILE
# define SIGAR_UTMP_FILE UTMP_FILE # define SIGAR_UTMP_FILE UTMP_FILE
# else
# define SIGAR_UTMP_FILE _PATH_UTMP
# endif
#endif
#ifdef __FreeBSD__
# define ut_user ut_name
#endif #endif
int sigar_who_list_get(sigar_t *sigar, int sigar_who_list_get(sigar_t *sigar,