diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-11-03 04:24:39 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-11-03 04:24:39 +1100 |
commit | 380dd8b313fc58a38f4f7c90da7df02bee16bef7 (patch) | |
tree | 5bec69b7a3bea34f9bf28e01f45698c46b06b51d | |
parent | a238b6c08bc13f236ec5e1a631e25dca8e4b269e (diff) |
Include time.h when defining timegm.
Fixes build on some platforms eg recent AIX.
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 8f815090..895ecf9e 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -339,6 +339,7 @@ struct tm *localtime_r(const time_t *, struct tm *); #endif #ifndef HAVE_TIMEGM +#include <time.h> time_t timegm(struct tm *); #endif |