initialize UTMP structure properly. Fixes Bug#93774. Patch reviewed by
authorKalpesh Shah <kalpesh.shah@sun.com>
Fri, 14 Feb 2003 15:07:48 +0000 (15:07 +0000)
committerPasupathi Duraisamy <pasu@src.gnome.org>
Fri, 14 Feb 2003 15:07:48 +0000 (15:07 +0000)
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

macros2/ChangeLog
macros2/check-utmp.m4

index 13988fe..06dccdc 100644 (file)
@@ -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
index 5241b96..5653923 100644 (file)
@@ -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