Skip to content

Commit d0cdbb1

Browse files
Berrysofttgross35
authored andcommitted
Cygwin: Fix strerror_r
(backport <rust-lang#4308>) [ update message to mention Cygwin - Trevor ] (cherry picked from commit e5f9b4e)
1 parent 46b1b3d commit d0cdbb1

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)