@@ -0,0 +1,6 @@
+#ifndef _BITS_ERRNO_H
+#define _BITS_ERRNO_H
+
+extern __thread int errno;
+#endif /* _BITS_ERRNO_H */
@@ -1 +0,0 @@
-extern __thread int errno;
@@ -1,4 +1,4 @@
-sys_includes = []
+sys_includes = ["bits/errno.h"]
include_guard = "_ERRNO_H"
language = "C"
@@ -4,6 +4,7 @@
extern crate platform;
+#[repr(C)]
pub enum Errno {
// Argument list too long
E2BIG = 1,
@@ -37,4 +37,4 @@ GCCTAIL=\
../openlibm/libopenlibm.a
%: %.c
- gcc -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"
+ gcc -no-pie -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"