Merge pull request #1875 from cmusser/master

This commit is contained in:
Yuki Okushi 2020-09-02 13:31:54 +09:00 committed by GitHub
commit 75ab4a0124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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
}

View File

@ -1044,6 +1044,7 @@ f! {
}
extern "C" {
pub fn __errno_location() -> *mut ::c_int;
pub fn setgrent();
pub fn mprotect(
addr: *mut ::c_void,