diff options
author | Brent Cook <bcook@openbsd.org> | 2015-10-14 23:53:52 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-10-15 09:16:38 -0500 |
commit | 4298ac9305d89cadf90ebb01f0e85bb74fea2c1e (patch) | |
tree | e58171fce41da919e0005b167fab19185c4d002d /include/compat/time.h | |
parent | 1dd79f5d8f617afdb0f5d51ac0278d7b4f84b82f (diff) | |
download | portable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.tar.gz portable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.tar.bz2 portable-4298ac9305d89cadf90ebb01f0e85bb74fea2c1e.zip |
include timegm fallback
Diffstat (limited to 'include/compat/time.h')
-rw-r--r-- | include/compat/time.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index 3ef3bad..3a87548 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
@@ -14,6 +14,10 @@ | |||
14 | #include_next <time.h> | 14 | #include_next <time.h> |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | #ifdef _WIN32 | 17 | #ifndef HAVE_TIMEGM |
18 | #ifdef HAVE__MKGMTIME | ||
18 | #define timegm(tm) _mkgmtime(tm) | 19 | #define timegm(tm) _mkgmtime(tm) |
20 | #else | ||
21 | time_t timegm(struct tm *tm); | ||
22 | #endif | ||
19 | #endif | 23 | #endif |