Include config.h to get HAVE_LOCALTIME_R macro.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 12 Jan 1999 09:32:31 +0000 (09:32 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 12 Jan 1999 09:32:31 +0000 (09:32 +0000)
1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.

* configure.in: Moved function check back to the place, they've
been before.

configure.in
gdate.c
glib/gdate.c

index fdbc6da..4381e03 100644 (file)
@@ -247,7 +247,7 @@ AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
 AC_CHECK_HEADERS(values.h, AC_DEFINE(HAVE_VALUES_H))
 
 # Check for some functions
-AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll)
+AC_CHECK_FUNCS(localtime_r rand_r lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll)
 
 # Check for sys_errlist
 AC_MSG_CHECKING(for sys_errlist)
@@ -706,8 +706,6 @@ AC_SUBST(G_THREAD_LIBS)
 
 CFLAGS="$CFLAGS $G_THREAD_CFLAGS"
 
-AC_CHECK_FUNCS(localtime_r rand_r)
-
 dnl **********************************************
 dnl *** GDefaultMutex setup and initialization ***
 dnl **********************************************
diff --git a/gdate.c b/gdate.c
index f44d70b..44a6bad 100644 (file)
--- a/gdate.c
+++ b/gdate.c
  * MT safe
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "glib.h"
 
 #include <time.h>
index f44d70b..44a6bad 100644 (file)
  * MT safe
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "glib.h"
 
 #include <time.h>