From c69d504e77a71f5eb0fdd5f9721bb9f584438951 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 22 Feb 2005 02:18:41 +0000 Subject: [PATCH] freebsd who porting --- src/sigar.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index 0d1225d4..5f2aa481 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -722,7 +722,15 @@ SIGAR_DECLARE(int) sigar_who_list_get(sigar_t *sigar, # define ut_time ut_tv.tv_sec #else # include -# define SIGAR_UTMP_FILE UTMP_FILE +# ifdef 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 int sigar_who_list_get(sigar_t *sigar,