(GTOD_init): Remove function.
(rpl_gettimeofday): Do its job here instead, rather than aborting.
#endif
#include <stdlib.h>
-#include "gtod.h"
static struct tm *localtime_buffer_addr;
-void
-GTOD_init (void)
-{
- time_t t = 0;
- localtime_buffer_addr = localtime (&t);
-}
-
/* This is a wrapper for gettimeofday. It is used only on systems for which
gettimeofday clobbers the static buffer used for localtime's result.
int result;
if (! localtime_buffer_addr)
- abort ();
+ {
+ time_t t = 0;
+ localtime_buffer_addr = localtime (&t);
+ }
save = *localtime_buffer_addr;
result = gettimeofday (tv, tz);