Skip to content
Snippets Groups Projects
Commit 7adbc758 authored by Sébastien Marie's avatar Sébastien Marie
Browse files

define `sethostname` under OpenBSD and Bitrig

factorize the definition with NetBSD
parent 836cda98
No related branches found
No related tags found
No related merge requests found
......@@ -529,6 +529,7 @@ extern {
abstime: *const ::timespec) -> ::c_int;
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t,
clock_id: clockid_t) -> ::c_int;
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
}
cfg_if! {
......
......@@ -588,7 +588,6 @@ extern {
pid: ::pid_t,
addr: *mut ::c_void,
data: ::c_int) -> ::c_int;
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
pub fn pthread_setname_np(t: ::pthread_t,
name: *const ::c_char,
arg: *mut ::c_void) -> ::c_int;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment