* lib/gettimeofday.c: Move extern declaration out of function.
+2009-01-19 Daniel P. Berrange <berrange@redhat.com>
+
+ gettimeofday: avoid warning: nested extern declaration of 'localtime'
+ * lib/gettimeofday.c: Move extern declaration out of function.
+
2009-01-18 Bruno Haible <bruno@clisp.org>
* m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
static struct tm tm_zero_buffer;
static struct tm *localtime_buffer_addr = &tm_zero_buffer;
+#undef localtime
+extern struct tm *localtime (time_t const *);
+
/* This is a wrapper for localtime. It is used only on systems for which
gettimeofday clobbers the static buffer used for localtime's result.
struct tm *
rpl_localtime (time_t const *timep)
{
-#undef localtime
- extern struct tm *localtime (time_t const *);
struct tm *tm = localtime (timep);
if (localtime_buffer_addr == &tm_zero_buffer)