summaryrefslogtreecommitdiff
path: root/src/unix/redox/mod.rs
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-23 11:28:15 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-23 16:29:28 +0200
commitd52732581a69752475665f497395985333585110 (patch)
treefee7de8425e69e5bae2c861281f9ec96533ba6ae /src/unix/redox/mod.rs
parent46c60fb726d7beba247ba1d4b531fdcf15c2f2f2 (diff)
downloadrust-libc-d52732581a69752475665f497395985333585110.tar.gz
Test strerror_r on Android and Linux
Diffstat (limited to 'src/unix/redox/mod.rs')
-rw-r--r--src/unix/redox/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index 9f22ca2022..4131bb9cf3 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -534,6 +534,9 @@ cfg_if! {
}
extern {
+ pub fn strerror_r(errnum: ::c_int, buf: *mut c_char,
+ buflen: ::size_t) -> ::c_int;
+
// malloc.h
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;