summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--safe_libc/src/errno.rs2
-rw-r--r--safe_libc/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/safe_libc/src/errno.rs b/safe_libc/src/errno.rs
index 2a2220b..fdb1246 100644
--- a/safe_libc/src/errno.rs
+++ b/safe_libc/src/errno.rs
@@ -7,7 +7,7 @@ use core::fmt;
pub struct Errno(pub libc::c_int);
extern "C" {
- //#[ffi_const]
+ #[ffi_const]
pub fn __errno_location() -> *mut libc::c_int;
}
diff --git a/safe_libc/src/lib.rs b/safe_libc/src/lib.rs
index 9356406..cbc4071 100644
--- a/safe_libc/src/lib.rs
+++ b/safe_libc/src/lib.rs
@@ -1,7 +1,7 @@
#![no_std]
#![feature(extern_types)]
#![feature(slice_ptr_len)]
-// #![feature(ffi_const)]
+#![feature(ffi_const)]
extern crate alloc;