Skip to content

Commit 326da17

Browse files
committed
Use libc for FFI functions and constants
1 parent 087aece commit 326da17

File tree

3 files changed

+192
-178
lines changed

3 files changed

+192
-178
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2323
([#647](https://github.com/nix-rust/nix/pull/647))
2424
- Exposed `unistd::setresuid` and `unistd::setresgid` on FreeBSD and OpenBSD
2525
([#721](https://github.com/nix-rust/nix/pull/721))
26+
- The `addr` argument to `madvise` is now `*mut` to better match the
27+
libc API.
2628

2729
# Fixed
2830
- Fix compilation and tests for OpenBSD targets

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515
]
1616

1717
[dependencies]
18-
libc = { git = "https://github.com/rust-lang/libc" }
18+
libc = { git = "https://github.com/susurrus/libc", branch = "mman_constants" }
1919
bitflags = "0.9"
2020
cfg-if = "0.1.0"
2121
void = "1.0.2"

0 commit comments

Comments
 (0)