Commit 7b9fb51
committed
support getrandom syscall on non-linux
At least FreeBSD and NetBSD also implement getrandom using the same
semantics as Linux >= 3.17. They don't define any of it it in
linux/random.h, however. They do define all the necessary bits in
sys/random.h. glibc >= 2.25 also defines it there as well as in
linux/random.h. Simply use sys/random.h when checking for its existence.1 parent 14f96a8 commit 7b9fb51
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7377 | 7377 | | |
7378 | 7378 | | |
7379 | 7379 | | |
7380 | | - | |
| 7380 | + | |
7381 | 7381 | | |
7382 | 7382 | | |
7383 | 7383 | | |
| |||
0 commit comments