aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Ondřej Surý <ondrej@sury.org> 2016-08-30 10:41:12 +0200
committerLibravatarLibravatar Ondřej Surý <ondrej@sury.org> 2016-08-30 10:41:12 +0200
commit6a6a85b0ecfbe1a68e0b2d86ba1f75a17f8c1598 (patch)
tree043d1f4265375c8cc13987d20c63ea0d109eb066
parent45dfa8916f911e55b60cb03c1cd0f6cea1141b63 (diff)
downloadluaossl-6a6a85b0ecfbe1a68e0b2d86ba1f75a17f8c1598.tar.gz
luaossl-6a6a85b0ecfbe1a68e0b2d86ba1f75a17f8c1598.tar.bz2
luaossl-6a6a85b0ecfbe1a68e0b2d86ba1f75a17f8c1598.zip
Add __DragonFly__ and generic BSD detection for ARC4RANDOM
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 9fc4595..136110f 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -51,7 +51,7 @@
#define HAVE_ARC4RANDOM
#endif
-#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(BSD)
#define HAVE_ARC4RANDOM
#endif