Cast the 'addr' argument of 'madvise()' for AIX#2655
Cast the 'addr' argument of 'madvise()' for AIX#2655asomers merged 2 commits intonix-rust:masterfrom
Conversation
|
Ping. Hi @asomers! Would you be the right person to ping in order to review this PR? |
|
This looks ok. But could you please add a changelog entry? |
…nature in the 'libc' crate.
cc58dea to
6ee1025
Compare
Added file |
|
Hi @asomers. I'm not sure if this is an appropriate question to ask, but are there any plans for another release of nix in the future? Just wondering as we're working on AIX support for nix as well, and having this change in a future release would be nice. |
|
@amy-kwan there are usually few obstacles to publishing a new release of Nix. There's been a big one lately, which is a complicated CI breakage, but that should fixed within the hour. So yes, we can publish a new release soon. |
@asomers Makes sense. Thank you for letting me know! |
What does this PR do
The AIX signature of
madvise()differs from the POSIX specification, which expectsvoid *as the type of theaddrargument, whereas AIX usescaddr_t(i.e.,char *). This patch castsaddrinside thenixwrappermadvise()to smooth it out.Checklist:
CONTRIBUTING.md