Skip to content

Commit e5f9b4e

Browse files
committed
Fix strerror_r
1 parent cd4be97 commit e5f9b4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/cygwin/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,7 @@ extern "C" {
21672167
) -> *mut c_void;
21682168

21692169
pub fn memrchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
2170+
#[link_name = "__xpg_strerror_r"]
21702171
pub fn strerror_r(errnum: c_int, buf: *mut c_char, buflen: size_t) -> c_int;
21712172
pub fn strsep(string: *mut *mut c_char, delim: *const c_char) -> *mut c_char;
21722173

0 commit comments

Comments
 (0)