aboutsummaryrefslogtreecommitdiff
path: root/include/compat/time.h
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-10-07 06:23:38 -0500
committerBrent Cook <bcook@openbsd.org>2015-10-07 08:22:43 -0500
commita615d3c6d31b6e7790fb17d46fecba3e4ebfc986 (patch)
treeca3ee742a03853de8a02d52d76941f4232c96f0a /include/compat/time.h
parent047926e06f06900f9f0512b5d228001cd08665c6 (diff)
downloadportable-a615d3c6d31b6e7790fb17d46fecba3e4ebfc986.tar.gz
portable-a615d3c6d31b6e7790fb17d46fecba3e4ebfc986.tar.bz2
portable-a615d3c6d31b6e7790fb17d46fecba3e4ebfc986.zip
rename _mkgmtime as timegm on win32
Diffstat (limited to 'include/compat/time.h')
-rw-r--r--include/compat/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/time.h b/include/compat/time.h
index 68b00a6..3ef3bad 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -13,3 +13,7 @@
13#else 13#else
14#include_next <time.h> 14#include_next <time.h>
15#endif 15#endif
16
17#ifdef _WIN32
18#define timegm(tm) _mkgmtime(tm)
19#endif