Commit 328d723
committed
Solaris/Illumos: use correct types for getrandom(2) flags
On Solaris (and any other platform that supports it), the `getrandom(2)`
syscall has signature:
```rust
fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t;
```
so the flag constants (`GRND_NONBLOCK`, `GRND_RANDOM`, etc...) should be
of type `c_uint`.
I'm not sure if this sort of "bug fix" counts as a breaking change.
Signed-off-by: Joe Richey <joerichey@google.com>1 parent f4d5a66 commit 328d723
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
1284 | | - | |
| 1283 | + | |
| 1284 | + | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
| |||
0 commit comments