Include config.h to get HAVE_LOCALTIME_R macro.

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.
This commit is contained in:
Sebastian Wilhelmi 1999-01-12 09:32:31 +00:00 committed by Sebastian Wilhelmi
parent b4c62873da
commit 90546ebdc1
3 changed files with 9 additions and 3 deletions

View 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)) AC_CHECK_HEADERS(values.h, AC_DEFINE(HAVE_VALUES_H))
# Check for some functions # 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 # Check for sys_errlist
AC_MSG_CHECKING(for sys_errlist) AC_MSG_CHECKING(for sys_errlist)
@ -706,8 +706,6 @@ AC_SUBST(G_THREAD_LIBS)
CFLAGS="$CFLAGS $G_THREAD_CFLAGS" CFLAGS="$CFLAGS $G_THREAD_CFLAGS"
AC_CHECK_FUNCS(localtime_r rand_r)
dnl ********************************************** dnl **********************************************
dnl *** GDefaultMutex setup and initialization *** dnl *** GDefaultMutex setup and initialization ***
dnl ********************************************** dnl **********************************************

View File

@ -21,6 +21,10 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "glib.h" #include "glib.h"
#include <time.h> #include <time.h>

View File

@ -21,6 +21,10 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "glib.h" #include "glib.h"
#include <time.h> #include <time.h>