Remove thread local from errno, for now

This commit is contained in:
Jeremy Soller
2018-03-07 20:37:22 -07:00
parent 85b80d0fe5
commit f01c669771
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
extern __thread int errno;
//TODO extern __thread int errno;
extern int errno;
#endif /* _BITS_ERRNO_H */
+2 -2
View File
@@ -2,7 +2,7 @@
#![no_std]
#![allow(non_camel_case_types)]
#![feature(thread_local)]
//TODO #![feature(thread_local)]
#[cfg(all(not(feature = "no_std"), target_os = "linux"))]
#[macro_use]
@@ -28,7 +28,7 @@ use core::fmt;
use types::*;
#[thread_local]
//TODO #[thread_local]
#[no_mangle]
pub static mut errno: c_int = 0;