Commit 6bf6c22
Fix: always use
Crystal < 1.7 don't support calling the `has_method?` macro from the top level. We already assume the `getrandom` libc function to be available on every Linux targets except Android 24 to 27 for which we now check the actual API version instead of the libc fun.
Co-authored-by: Johannes Müller <straightshoota@gmail.com>getrandom on Linux and Android >= 28 (#16478)1 parent d348727 commit 6bf6c22
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 15 | | |
23 | 16 | | |
| 17 | + | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
| |||
0 commit comments