Skip to content

Commit 75ab4a0

Browse files
authored
Merge pull request #1875 from cmusser/master
2 parents eb079df + 2e3748a commit 75ab4a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/freebsdlike/dragonfly/errno.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// DragonFlyBSD's __error function is declared with "static inline", so it must
22
// be implemented in the libc crate, as a pointer to a static thread_local.
33
f! {
4+
#[deprecated(since = "0.2.77", "Use `__errno_location()` instead")]
45
pub fn __error() -> *mut ::c_int {
56
&mut errno
67
}

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ f! {
10441044
}
10451045

10461046
extern "C" {
1047+
pub fn __errno_location() -> *mut ::c_int;
10471048
pub fn setgrent();
10481049
pub fn mprotect(
10491050
addr: *mut ::c_void,

0 commit comments

Comments
 (0)