From 8776b52d7d4c9adc5774a231e3a4a8ecfd8bad7b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 4 Apr 2005 09:58:44 +0000 Subject: Toby Peterson: 21083: RLIMIT_AS and RLIMIT_RSS are the same in Mac OX X ut_name needs to be ut_user in struct utmpx --- Src/watch.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Src/watch.c') diff --git a/Src/watch.c b/Src/watch.c index c12625c85..402b160fe 100644 --- a/Src/watch.c +++ b/Src/watch.c @@ -87,6 +87,14 @@ #if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE) # define WATCH_STRUCT_UTMP struct utmpx +/* + * In utmpx, the ut_name field is replaced by ut_user. + * Howver, on some systems ut_name may already be defined this + * way for the purposes of utmp. + */ +# ifndef ut_name +# define ut_name ut_user +# endif # ifdef HAVE_STRUCT_UTMPX_UT_XTIME # undef ut_time # define ut_time ut_xtime -- cgit v1.2.3