diff options
author | Adam Langley <agl@google.com> | 2014-10-03 02:35:35 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-10-03 02:45:22 +0400 |
commit | 51fcd871028d1bb5f0a3b541e823cefd2f2aba63 (patch) | |
tree | ccb7146aea0b5401c0e215aa02c084ecd8d4fd7e /crypto/bio | |
parent | ad912f348b6157b4565c799bc24d5f3b776c82d2 (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/bio')
-rw-r--r-- | crypto/bio/bio_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/bio_test.c b/crypto/bio/bio_test.c index fd88b55f..86363f9c 100644 --- a/crypto/bio/bio_test.c +++ b/crypto/bio/bio_test.c @@ -12,7 +12,9 @@ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#if !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 201410L +#endif #include <openssl/base.h> |