Skip to content

Commit f25b7f2

Browse files
tgross35AkhilTThomas
authored andcommitted
Merge pull request rust-lang#3934 from Laura7089/feat/esp-idf-hostname
Add `get_hostname` to esp-idf (backport <rust-lang#3934>) (cherry picked from commit 600e1d1)
1 parent 3c670a5 commit f25b7f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/newlib/espidf/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ extern "C" {
122122

123123
pub fn gethostname(name: *mut c_char, namelen: ssize_t);
124124

125+
pub fn gethostname(name: *mut ::c_char, namelen: ::ssize_t);
126+
125127
#[link_name = "lwip_sendmsg"]
126128
pub fn sendmsg(s: c_int, msg: *const crate::msghdr, flags: c_int) -> ssize_t;
127129
#[link_name = "lwip_recvmsg"]

0 commit comments

Comments
 (0)