File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ int janet_cryptorand(uint8_t *out, size_t n) {
869
869
}
870
870
}
871
871
return 0 ;
872
- #elif defined(JANET_LINUX ) || ( defined(JANET_APPLE ) && !defined(MAC_OS_X_VERSION_10_7 ) )
872
+ #elif defined(JANET_LINUX ) || defined( JANET_CYGWIN ) || ( defined(JANET_APPLE ) && !defined(MAC_OS_X_VERSION_10_7 ) )
873
873
/* We should be able to call getrandom on linux, but it doesn't seem
874
874
to be uniformly supported on linux distros.
875
875
On Mac, arc4random_buf wasn't available on until 10.7.
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ extern "C" {
67
67
#define JANET_LINUX 1
68
68
#endif
69
69
70
+ /* Check for Cygwin */
71
+ #if defined(__CYGWIN__ )
72
+ #define JANET_CYGWIN 1
73
+ #endif
74
+
70
75
/* Check Unix */
71
76
#if defined(_AIX ) \
72
77
|| defined(__APPLE__ ) /* Darwin */ \
You can’t perform that action at this time.
0 commit comments