Skip to content
Snippets Groups Projects
Commit 85b80d0f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix errno.h, add -no-pie to tests Makefile

parent 851e4d39
No related branches found
No related tags found
No related merge requests found
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
extern __thread int errno;
#endif /* _BITS_ERRNO_H */
extern __thread int errno;
sys_includes = [] sys_includes = ["bits/errno.h"]
include_guard = "_ERRNO_H" include_guard = "_ERRNO_H"
language = "C" language = "C"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
extern crate platform; extern crate platform;
#[repr(C)]
pub enum Errno { pub enum Errno {
// Argument list too long // Argument list too long
E2BIG = 1, E2BIG = 1,
......
...@@ -37,4 +37,4 @@ GCCTAIL=\ ...@@ -37,4 +37,4 @@ GCCTAIL=\
../openlibm/libopenlibm.a ../openlibm/libopenlibm.a
%: %.c %: %.c
gcc -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@" gcc -no-pie -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment