Skip to content

Commit ce9812d

Browse files
committed
unix add hstrerror
1 parent e02b7e5 commit ce9812d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/unix.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ gmtime_r
594594
grantpt
595595
group
596596
hostent
597+
hstrerror
597598
if_indextoname
598599
if_nametoindex
599600
in6_addr

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ extern "C" {
11711171
)))]
11721172
#[cfg_attr(target_os = "espidf", link_name = "lwip_freeaddrinfo")]
11731173
pub fn freeaddrinfo(res: *mut addrinfo);
1174+
pub fn hstrerror(errcode: ::c_int) -> *const ::c_char;
11741175
pub fn gai_strerror(errcode: ::c_int) -> *const ::c_char;
11751176
#[cfg_attr(
11761177
any(

0 commit comments

Comments
 (0)