aboutsummaryrefslogtreecommitdiffstats
path: root/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index 7808ac2e..fc73b611 100644
--- a/win32.c
+++ b/win32.c
@@ -317,3 +317,16 @@ void log_message(int level, char *message, ...)
}
void log_link(int level, int output) { /* FIXME */ }
+
+struct tm *
+gmtime_r (const time_t *timer, struct tm *result)
+{
+ struct tm *local_result;
+ local_result = gmtime (timer);
+
+ if (local_result == NULL || result == NULL)
+ return NULL;
+
+ memcpy (result, local_result, sizeof (result));
+ return result;
+}