utmpx_ut_user.patch   [plain text]


--- Src/watch.c	2005-04-04 02:53:36.000000000 -0700
+++ Src/watch.c	2006-12-21 13:44:59.000000000 -0800
@@ -111,6 +111,9 @@
 # ifdef HAVE_STRUCT_UTMPX_UT_HOST
 #  define WATCH_UTMP_UT_HOST 1
 # endif
+# ifdef __APPLE__
+# define ut_name ut_user
+#endif
 #endif
 
 #if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMP) && defined(REAL_UTMP_FILE)