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 00:58:19 +0400
committerAdam Langley <agl@google.com>2014-10-03 01:35:33 +0400
commitad912f348b6157b4565c799bc24d5f3b776c82d2 (patch)
treecec3937085d793d71ebb68834c8083539ddf55d8 /crypto/mem.c
parentc7dd5f301f5081972002cd3c64b3e2ddd5acfb9a (diff)
Use _POSIX_C_SOURCE not _BSD_SOURCE.
_BSD_SOURCE has been deprecated (see bug). The manpage for printf suggests that any _POSIX_C_SOURCE >= 200112L is also sufficient to bring in the needed declarations and the bug reporter confirms that it's sufficient for him. https://code.google.com/p/chromium/issues/detail?id=419859 Change-Id: Ifc053f11c5aa1df35aae8e952d2c73a7f4599ec2 Reviewed-on: https://boringssl-review.googlesource.com/1890 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/mem.c')
-rw-r--r--crypto/mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/mem.c b/crypto/mem.c
index 1eb97c9f..b16b3104 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -53,9 +53,7 @@
* 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
+#define _POSIX_C_SOURCE 201410L /* needed for strdup, snprintf, vprintf etc */
#include <openssl/mem.h>
@@ -66,6 +64,8 @@
#if defined(OPENSSL_WINDOWS)
#include <Windows.h>
+#else
+#include <strings.h>
#endif