aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 06:56:24 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 18:39:53 +1000
commit487a13c7c8e23268145c3dd88317cd8ea547c901 (patch)
tree2829d4e0b631e410adbe15a2b7ed4f9209df44c6 /win32
parenteefbe3a047b640b861f3e78cb036cd70b9c5790e (diff)
downloadbusybox-w32-487a13c7c8e23268145c3dd88317cd8ea547c901.tar.gz
busybox-w32-487a13c7c8e23268145c3dd88317cd8ea547c901.tar.bz2
busybox-w32-487a13c7c8e23268145c3dd88317cd8ea547c901.zip
win32: add gmtime_r()
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}