NetBSD: Use PROT_MPROTECT() and disable getentropy().

Note: this is not an officially supported target.
Contributed by David Carlier.
This commit is contained in:
Mike Pall
2021-03-29 10:41:52 +02:00
parent 9442226825
commit 3217240b47
3 changed files with 14 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ static PRGR libfunc_rgr;
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
#define LJ_TARGET_HAS_GETENTROPY 1
#endif
#elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
#elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
#define LJ_TARGET_HAS_GETENTROPY 1
#endif