diff --git a/include/errno.h b/include/errno.h index f1761777c5..02b7e0c00f 100644 --- a/include/errno.h +++ b/include/errno.h @@ -1 +1 @@ -extern int errno; +extern __thread int errno; diff --git a/src/lib.rs b/src/lib.rs index 90c269714d..b3b38a57b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ extern crate errno; extern crate fcntl; extern crate grp; extern crate mman; +extern crate semaphore; extern crate stdio; extern crate stdlib; extern crate string; diff --git a/tests/.gitignore b/tests/.gitignore index 759d9904ee..dead47ff35 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -6,6 +6,7 @@ /create.out /dup /dup.out +/error /fchdir /fsync /ftruncate diff --git a/tests/Makefile b/tests/Makefile index 41dc224061..8d87af542c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -5,6 +5,7 @@ BINS=\ chdir \ create \ dup \ + error \ fchdir \ fsync \ ftruncate \