* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com). */
-#if !defined(_BSD_SOURCE)
-#define _BSD_SOURCE /* for gmtime_r */
+#if !defined(_POSIX_C_SOURCE)
+#define _POSIX_C_SOURCE 201410L /* for gmtime_r */
#endif
#include <openssl/time_support.h>
struct tm *OPENSSL_gmtime(const time_t *time, struct tm *result) {
#if defined(OPENSSL_WINDOWS)
- if (_gmtime_s(result, time)) {
+ if (gmtime_s(result, time)) {
return NULL;
}
return result;