diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/time_support.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/time_support.c b/src/crypto/time_support.c index bbfe303..9302ebf 100644 --- a/src/crypto/time_support.c +++ b/src/crypto/time_support.c @@ -59,6 +59,12 @@ #define _POSIX_C_SOURCE 201410L /* for gmtime_r */ #endif +#if defined(__MINGW32__) +#define MINGW_HAS_SECURE_API 1 /* supplied by libmingwex */ +#include <sec_api/time_s.h> /* for correct definition of gmtime_s */ +#undef MINGW_HAS_SECURE_API +#endif + #include <openssl/time_support.h> #define SECS_PER_DAY (24 * 60 * 60) |