Commit 4d072b0
committed
Auto merge of rust-lang#3090 - josephlr:solaris, r=JohnTitor
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, there weren't any Solaris/Illumos files under `libc-test/semver`.
Signed-off-by: Joe Richey <joerichey@google.com>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