summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalpesh Shah <kalpesh.shah@sun.com>2003-02-14 15:07:48 +0000
committerPasupathi Duraisamy <pasu@src.gnome.org>2003-02-14 15:07:48 +0000
commit6d8ccee455cde71467a2056530fe66f865219c0a (patch)
tree1fe57de17ee6083e5e14a02ee2fa461180b9d115
parenta4fc522b4035e39ec3dc9562db72d6809ebca6ac (diff)
downloadgnome-common-6d8ccee455cde71467a2056530fe66f865219c0a.tar.gz
initialize UTMP structure properly. Fixes Bug#93774. Patch reviewed by
2003-02-14 Kalpesh Shah <kalpesh.shah@sun.com> * check-utmp.m4: initialize UTMP structure properly. Fixes Bug#93774. Patch reviewed by Andersca <andersca@gnu.org> svn path=/trunk/; revision=2766
-rw-r--r--macros2/ChangeLog6
-rw-r--r--macros2/check-utmp.m42
2 files changed, 7 insertions, 1 deletions
diff --git a/macros2/ChangeLog b/macros2/ChangeLog
index 13988fe..06dccdc 100644
--- a/macros2/ChangeLog
+++ b/macros2/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-14 Kalpesh Shah <kalpesh.shah@sun.com>
+
+ * check-utmp.m4: initialize UTMP structure properly.
+ Fixes Bug#93774.
+ Patch reviewed by Andersca <andersca@gnu.org>
+
2002-09-23 Bastien Nocera <hadess@hadess.net>
* autogen.sh: exit if aclocal, autoheader, automake or autoconf
diff --git a/macros2/check-utmp.m4 b/macros2/check-utmp.m4
index 5241b96..5653923 100644
--- a/macros2/check-utmp.m4
+++ b/macros2/check-utmp.m4
@@ -212,7 +212,7 @@ AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
#endif
#ifdef HAVE_UTMPX_H
#include <utmpx.h>
-#endif],[UTMP ut; ut.ut_tv={0, 0};],result=yes,result=no)
+#endif],[UTMP ut; ut.ut_tv.tv_sec=0; ut.ut_tv.tv_usec=0;],result=yes,result=no)
if test "$result" = "yes"; then
AC_DEFINE(HAVE_UT_UT_TV)
fi