Line 0
Link Here
|
|
|
1 |
--- src/lj_prng.c 2020-10-02 05:52:18 UTC |
2 |
+++ src/lj_prng.c |
3 |
@@ -109,6 +109,7 @@ static PRGR libfunc_rgr; |
4 |
#include <sys/syscall.h> |
5 |
#else |
6 |
|
7 |
+#ifndef LJ_TARGET_HAS_GETENTROPY |
8 |
#if LJ_TARGET_OSX |
9 |
#include <Availability.h> |
10 |
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 || \ |
11 |
@@ -118,6 +119,7 @@ static PRGR libfunc_rgr; |
12 |
#elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN |
13 |
#define LJ_TARGET_HAS_GETENTROPY 1 |
14 |
#endif |
15 |
+#endif |
16 |
|
17 |
#if LJ_TARGET_HAS_GETENTROPY |
18 |
extern int getentropy(void *buf, size_t len); |