aboutsummaryrefslogtreecommitdiff
path: root/src/lj_prng.c
diff options
context:
space:
mode:
authorMike Pall <mike>2021-03-29 10:41:52 +0200
committerMike Pall <mike>2021-03-29 10:41:52 +0200
commit3217240b4767d481f7dd5e7036721aec643a1f11 (patch)
tree9d3a196c6cc520d09f99f5cf4e1719911d663b17 /src/lj_prng.c
parent9442226825e8e5be38474492adf7742dd47a4902 (diff)
downloadluajit-3217240b4767d481f7dd5e7036721aec643a1f11.tar.gz
luajit-3217240b4767d481f7dd5e7036721aec643a1f11.tar.bz2
luajit-3217240b4767d481f7dd5e7036721aec643a1f11.zip
NetBSD: Use PROT_MPROTECT() and disable getentropy().
Note: this is not an officially supported target. Contributed by David Carlier.
Diffstat (limited to 'src/lj_prng.c')
-rw-r--r--src/lj_prng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_prng.c b/src/lj_prng.c
index 0c4a5cf0..a390662d 100644
--- a/src/lj_prng.c
+++ b/src/lj_prng.c
@@ -121,7 +121,7 @@ static PRGR libfunc_rgr;
121#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 121#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
122#define LJ_TARGET_HAS_GETENTROPY 1 122#define LJ_TARGET_HAS_GETENTROPY 1
123#endif 123#endif
124#elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN 124#elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
125#define LJ_TARGET_HAS_GETENTROPY 1 125#define LJ_TARGET_HAS_GETENTROPY 1
126#endif 126#endif
127 127