Skip to content

Commit 0926113

Browse files
authored
Merge pull request #339 from asomers/master
Add sethostname for freebsdlike operating systems
2 parents bbf53a1 + 366509d commit 0926113

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ extern {
811811
clock_id: *mut clockid_t) -> ::c_int;
812812
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t,
813813
clock_id: clockid_t) -> ::c_int;
814+
pub fn sethostname(name: *const ::c_char, len: ::c_int) -> ::c_int;
814815
}
815816

816817
cfg_if! {

0 commit comments

Comments
 (0)