summaryrefslogtreecommitdiff
path: root/data/inetutils/utmpx.diff
blob: b3b64cb58e9f50588c64a18dd20e001227fa860d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -ru inetutils-1.5/configure.ac inetutils-1.5+iPhone/configure.ac
--- inetutils-1.5/configure.ac	2007-06-28 22:58:23.000000000 +0000
+++ inetutils-1.5+iPhone/configure.ac	2008-01-02 02:07:05.000000000 +0000
@@ -776,8 +776,7 @@
   AC_DEFINE(UTMPX, 1, [FIXME])
   AC_DEFINE(HAVE_STREAMSPTY, 1, [FIXME])
   ;;
-*irix* | *hpux*)
-  AC_DEFINE(UTMPX, 1, [FIXME])
+*irix* | *hpux* | *darwin*)
   AC_DEFINE(UTMPX, 1, [FIXME])
   ;;
 esac
diff -ru inetutils-1.5/libinetutils/utmp_logout.c inetutils-1.5+iPhone/libinetutils/utmp_logout.c
--- inetutils-1.5/libinetutils/utmp_logout.c	2006-10-11 21:46:24.000000000 +0000
+++ inetutils-1.5+iPhone/libinetutils/utmp_logout.c	2008-01-02 02:23:02.000000000 +0000
@@ -52,11 +52,15 @@
 
 	if ((ut = getutxline(&utx))) {
 		ut->ut_type = DEAD_PROCESS;
+#ifdef HAVE_STRUCT_UTMPX_UT_EXIT
 		ut->ut_exit.e_termination = 0;
 		ut->ut_exit.e_exit = 0;
+#endif
 		gettimeofday(&(ut->ut_tv), 0);
 		pututxline(ut);
+#ifdef HAVE_UPDWTMPX
 		updwtmpx(PATH_WTMPX, ut);
+#endif
 	}
 	endutxent();
 #else