Skip to content

Commit 73d83da

Browse files
committed
espidf: Fix the duplicate definition of gethostname
(backport <#4773>) (cherry picked from commit f638893)
1 parent dfe4fe0 commit 73d83da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,7 @@ extern "C" {
14661466
link_name = "mknod@FBSD_1.0"
14671467
)]
14681468
pub fn mknod(pathname: *const c_char, mode: mode_t, dev: crate::dev_t) -> c_int;
1469+
#[cfg(not(target_os = "espidf"))]
14691470
pub fn gethostname(name: *mut c_char, len: size_t) -> c_int;
14701471
pub fn endservent();
14711472
pub fn getservbyname(name: *const c_char, proto: *const c_char) -> *mut servent;

0 commit comments

Comments
 (0)