summaryrefslogtreecommitdiff
path: root/databases/mongodb/patches/patch-src_mongo_platform_random.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mongodb/patches/patch-src_mongo_platform_random.cpp')
-rw-r--r--databases/mongodb/patches/patch-src_mongo_platform_random.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/databases/mongodb/patches/patch-src_mongo_platform_random.cpp b/databases/mongodb/patches/patch-src_mongo_platform_random.cpp
index 35fa7cccdbb..606d47b4230 100644
--- a/databases/mongodb/patches/patch-src_mongo_platform_random.cpp
+++ b/databases/mongodb/patches/patch-src_mongo_platform_random.cpp
@@ -1,14 +1,14 @@
-$NetBSD: patch-src_mongo_platform_random.cpp,v 1.2 2015/08/26 05:03:00 fhajny Exp $
+$NetBSD: patch-src_mongo_platform_random.cpp,v 1.3 2016/02/12 03:37:24 ryoon Exp $
Add NetBSD support.
---- src/mongo/platform/random.cpp.orig 2015-08-24 00:39:52.000000000 +0000
+--- src/mongo/platform/random.cpp.orig 2016-01-05 18:31:44.000000000 +0000
+++ src/mongo/platform/random.cpp
-@@ -116,7 +116,7 @@ SecureRandom* SecureRandom::create() {
+@@ -145,7 +145,7 @@ SecureRandom* SecureRandom::create() {
return new WinSecureRandom();
}
--#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__)
-+#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__) || defined(__netbsd__)
+-#elif defined(__linux__) || defined(__sun) || defined(__APPLE__) || defined(__FreeBSD__)
++#elif defined(__linux__) || defined(__sun) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
class InputStreamSecureRandom : public SecureRandom {
public: