Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / boringssl / src / crypto / time_support.c
index f845e98..bbfe303 100644 (file)
@@ -55,8 +55,8 @@
  * (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>
@@ -65,7 +65,7 @@
 
 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;