HAVE_LOCALTIME_R was used, but never defined.
time_t now;
gchar buf[256];
time_t now;
gchar buf[256];
-#ifdef HAVE_LOCALTIME_R
- struct tm dummy;
-#endif
-
now = time (NULL);
#ifdef HAVE_LOCALTIME_R
now = time (NULL);
#ifdef HAVE_LOCALTIME_R
- /* Need to call tzset explicitly when calling localtime_r for changes
- to the timezone between calls to be visible. */
- tzset ();
- t = localtime_r (&now, &dummy);
+ {
+ struct tm dummy;
+
+ /* Need to call tzset explicitly when calling localtime_r for changes
+ * to the timezone between calls to be visible. */
+ tzset ();
+ t = localtime_r (&now, &dummy);
+ }
#else
/* on win32 this apparently returns a per-thread struct which would be fine */
t = localtime (&now);
#else
/* on win32 this apparently returns a per-thread struct which would be fine */
t = localtime (&now);
check_functions = [
['HAVE_DCGETTEXT', 'dcgettext', '#include<libintl.h>'],
['HAVE_GMTIME_R', 'gmtime_r', '#include<time.h>'],
check_functions = [
['HAVE_DCGETTEXT', 'dcgettext', '#include<libintl.h>'],
['HAVE_GMTIME_R', 'gmtime_r', '#include<time.h>'],
+ ['HAVE_LOCALTIME_R', 'localtime_r', '#include<time.h>'],
['HAVE_LRINTF', 'lrintf', '#include<math.h>'],
['HAVE_MMAP', 'mmap', '#include<sys/mman.h>'],
['HAVE_LOG2', 'log2', '#include<math.h>'],
['HAVE_LRINTF', 'lrintf', '#include<math.h>'],
['HAVE_MMAP', 'mmap', '#include<sys/mman.h>'],
['HAVE_LOG2', 'log2', '#include<math.h>'],