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@chromium.org>2014-07-11 04:07:14 +0400
committerAdam Langley <agl@google.com>2014-07-11 23:04:04 +0400
commit0113a4fb60c3b6e9e93a217d5b4d373eb343a8c6 (patch)
tree249fa04520e982bfe7c62b9342070a366288e2cc /crypto/mem.c
parent925fee36e1f6dcad56e60fccca5fa069e09979f7 (diff)
Support building with PNaCl.
PNaCl needs OPENSSL_NO_ASM to work and a couple of cases were missing because it hasn't previously been tested. Additionally, it defined _BSD_SOURCE and others on the command line, causing duplicate definition errors when defined in source code. It's missing readdir_r. It uses newlib, which appears to use u_short in socket.h without ever defining it. Change-Id: Ieccfc7365723d0521f6327eebe9f44a2afc57406 Reviewed-on: https://boringssl-review.googlesource.com/1140 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/mem.c')
-rw-r--r--crypto/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/mem.c b/crypto/mem.c
index 9cf0aa00..a5f639bb 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -53,7 +53,9 @@
* copied and put under another distribution licence
* [including the GNU Public Licence.] */
+#if !defined(_BSD_SOURCE)
#define _BSD_SOURCE /* needed for strdup, snprintf, vprintf etc */
+#endif
#include <openssl/mem.h>