aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 09d746f21..1a476651a 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -62,3 +62,10 @@ int pipe(int filedes[2])
62 return -1; 62 return -1;
63 return 0; 63 return 0;
64} 64}
65
66struct tm *gmtime_r(const time_t *timep, struct tm *result)
67{
68 /* gmtime() in MSVCRT.DLL is thread-safe, but not reentrant */
69 memcpy(result, gmtime(timep), sizeof(struct tm));
70 return result;
71}