1 // DragonFlyBSD's __error function is declared with "static inline", so it must
2 // be implemented in the libc crate, as a pointer to a static thread_local.
3 f! {
4     #[deprecated(since = "0.2.77", note = "Use `__errno_location()` instead")]
5     pub fn __error() -> *mut ::c_int {
6         &mut errno
7     }
8 }
9 
10 extern "C" {
11     #[thread_local]
12     pub static mut errno: ::c_int;
13 }
14