summaryrefslogtreecommitdiff
path: root/deps/openssl/config
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-07-16 21:44:11 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2017-08-30 16:40:32 -0300
commit0b0c2ec29ac9ea6d8f2bc10016c6625dfc1c5ba7 (patch)
treeb99a495bebd3df37192eb64ab97f52f91a7213b2 /deps/openssl/config
parent9f175d1229169753307f7cfb2656cdcd16cbcdfb (diff)
downloadandroid-node-v8-0b0c2ec29ac9ea6d8f2bc10016c6625dfc1c5ba7.tar.gz
android-node-v8-0b0c2ec29ac9ea6d8f2bc10016c6625dfc1c5ba7.tar.bz2
android-node-v8-0b0c2ec29ac9ea6d8f2bc10016c6625dfc1c5ba7.zip
build: add NetBSD support to opensslconf.h
Simplify the BSD list by defining OPENSSL_BSD if using a matching BSD platform. Add NetBSD to the list and update documentation. PR-URL: https://github.com/nodejs/node/pull/14313 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/openssl/config')
-rw-r--r--deps/openssl/config/opensslconf.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/deps/openssl/config/opensslconf.h b/deps/openssl/config/opensslconf.h
index 9b20fb6485..1c89babcf6 100644
--- a/deps/openssl/config/opensslconf.h
+++ b/deps/openssl/config/opensslconf.h
@@ -37,6 +37,8 @@
| solaris | x64 | solaris64-x86_64-gcc | o |
| freebsd | ia32 | BSD-x86 | o |
| freebsd | x64 | BSD-x86_64 | o |
+ | netbsd | ia32 | BSD-x86 | o |
+ | netbsd | x64 | BSD-x86_64 | o |
| openbsd | ia32 | BSD-x86 | - |
| openbsd | x64 | BSD-x86_64 | - |
| others | others | linux-elf | - |
@@ -51,6 +53,7 @@
| mac | __APPLE__ && __MACH__ |
| solaris | __sun |
| freebsd | __FreeBSD__ |
+ | netbsd | __NetBSD__ |
| openbsd | __OpenBSD__ |
| linux (not andorid)| __linux__ && !__ANDROID__ |
| android | __ANDROID__ |
@@ -94,6 +97,11 @@
# define OPENSSL_LINUX 1
#endif
+#undef OPENSSL_BSD
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+# define OPENSSL_BSD 1
+#endif
+
#if defined(OPENSSL_LINUX) && defined(__i386__)
# include "./archs/linux-elf/opensslconf.h"
#elif defined(OPENSSL_LINUX) && defined(__ILP32__)
@@ -112,9 +120,9 @@
# include "./archs/VC-WIN32/opensslconf.h"
#elif defined(_WIN32) && defined(_M_X64)
# include "./archs/VC-WIN64A/opensslconf.h"
-#elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__i386__)
+#elif defined(OPENSSL_BSD) && defined(__i386__)
# include "./archs/BSD-x86/opensslconf.h"
-#elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__x86_64__)
+#elif defined(OPENSSL_BSD) && defined(__x86_64__)
# include "./archs/BSD-x86_64/opensslconf.h"
#elif defined(__sun) && defined(__i386__)
# include "./archs/solaris-x86-gcc/opensslconf.h"