[gdm] Only access ut_exit if available
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Subject: [gdm] Only access ut_exit if available
- Date: Fri, 17 Jul 2009 03:08:29 +0000 (UTC)
commit dad663da83d80de4ca6ba03f3784f5afdfeb53ee
Author: Daniel Macks <dmacks netspace org>
Date: Thu Jul 16 23:07:45 2009 -0400
Only access ut_exit if available
This fixes a build failure on OSX.
See http://bugzilla.gnome.org/show_bug.cgi?id=568487
daemon/gdm-session-record.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c
index cd5de47..4ed60a1 100644
--- a/daemon/gdm-session-record.c
+++ b/daemon/gdm-session-record.c
@@ -322,8 +322,10 @@ gdm_session_record_logout (GPid session_pid,
#elif defined(HAVE_UT_UT_TIME)
u->ut_time = session_record.ut_time;
#endif
+#ifdef HAVE_UT_UT_EXIT_E_TERMINATION
u->ut_exit.e_termination = 0;
u->ut_exit.e_exit = 0;
+#endif
pututxline (u);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]