diff options
author | Brent Cook <bcook@openbsd.org> | 2015-10-07 06:23:38 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-10-07 08:22:43 -0500 |
commit | a615d3c6d31b6e7790fb17d46fecba3e4ebfc986 (patch) | |
tree | ca3ee742a03853de8a02d52d76941f4232c96f0a /include/compat/time.h | |
parent | 047926e06f06900f9f0512b5d228001cd08665c6 (diff) | |
download | portable-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.h | 4 |
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 | ||