diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-09-02 13:31:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 13:31:54 +0900 |
commit | 75ab4a0124b5f79a3b49450b2ef461a31da6bc01 (patch) | |
tree | 0d4817a313e919d969397c91eec588e951ceaa12 | |
parent | eb079df8827132a7e161d67ac94282bcba62d6f6 (diff) | |
parent | 2e3748a53caa337842e2226c9ed040973d033a0b (diff) | |
download | rust-libc-75ab4a0124b5f79a3b49450b2ef461a31da6bc01.tar.gz |
Merge pull request #1875 from cmusser/master
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/errno.rs | 1 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/errno.rs b/src/unix/bsd/freebsdlike/dragonfly/errno.rs index e9ad63b86b..434ac63a3c 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/errno.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/errno.rs @@ -1,6 +1,7 @@ // DragonFlyBSD's __error function is declared with "static inline", so it must // be implemented in the libc crate, as a pointer to a static thread_local. f! { + #[deprecated(since = "0.2.77", "Use `__errno_location()` instead")] pub fn __error() -> *mut ::c_int { &mut errno } diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 4a15c3b89a..47e3b7c152 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1044,6 +1044,7 @@ f! { } extern "C" { + pub fn __errno_location() -> *mut ::c_int; pub fn setgrent(); pub fn mprotect( addr: *mut ::c_void, |