From f01c669771d0caaac403e05ee29c8b47ff96fab1 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 7 Mar 2018 20:37:22 -0700
Subject: [PATCH] Remove thread local from errno, for now

---
 include/bits/errno.h    | 3 ++-
 src/platform/src/lib.rs | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/bits/errno.h b/include/bits/errno.h
index 7266f57e..1ade524d 100644
--- a/include/bits/errno.h
+++ b/include/bits/errno.h
@@ -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 */
diff --git a/src/platform/src/lib.rs b/src/platform/src/lib.rs
index 6e5841a9..a3270531 100644
--- a/src/platform/src/lib.rs
+++ b/src/platform/src/lib.rs
@@ -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;
 
-- 
GitLab