Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2014-10-03 02:35:35 +0400
committerAdam Langley <agl@google.com>2014-10-03 02:45:22 +0400
commit51fcd871028d1bb5f0a3b541e823cefd2f2aba63 (patch)
treeccb7146aea0b5401c0e215aa02c084ecd8d4fd7e /crypto/time_support.c
parentad912f348b6157b4565c799bc24d5f3b776c82d2 (diff)
Fix NaCl build.
NaCl defines _POSIX_C_SOURCE on the command line for some reason, thus we have to be defensive about defining it. Change-Id: Icbc8afcb1ac0e0ca23b788b11ea911c3f55a8b7f Reviewed-on: https://boringssl-review.googlesource.com/1891 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/time_support.c')
-rw-r--r--crypto/time_support.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/time_support.c b/crypto/time_support.c
index 4537e82b..bbfe3036 100644
--- a/crypto/time_support.c
+++ b/crypto/time_support.c
@@ -55,7 +55,9 @@
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com). */
+#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 201410L /* for gmtime_r */
+#endif
#include <openssl/time_support.h>