f9f924b852
the sources taken at 20151230 from https://boringssl.googlesource.com/boringssl/ with portability fixes for NetBSD. It installs into ${PREFIX}/bssl to avoid conflicts with openssl. BoringSSL is a fork of OpenSSL that is designed to meet Google's needs. Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability. Programs ship their own copies of BoringSSL when they use it and we update everything as needed when deciding to make API changes. This allows us to mostly avoid compromises in the name of compatibility. It works for us, but it may not work for you. BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google's product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.
16 lines
458 B
C
16 lines
458 B
C
$NetBSD: patch-crypto__mem.c,v 1.1.1.1 2015/12/31 02:57:35 agc Exp $
|
|
|
|
NetBSD portability patches
|
|
|
|
--- crypto/mem.c.orig 2015-12-30 15:55:51.000000000 -0800
|
|
+++ crypto/mem.c 2015-12-30 18:06:05.000000000 -0800
|
|
@@ -55,7 +55,9 @@
|
|
* [including the GNU Public Licence.] */
|
|
|
|
#if !defined(_POSIX_C_SOURCE)
|
|
+# if !defined(__NetBSD__)
|
|
#define _POSIX_C_SOURCE 201410L /* needed for strdup, snprintf, vprintf etc */
|
|
+# endif
|
|
#endif
|
|
|
|
#include <openssl/mem.h>
|