Skip to content

Commit 39f03ea

Browse files
committed
Auto merge of rust-lang#276 - lemonrock:SC_HOSTNAME_MAX_OpenBsd, r=alexcrichton
Definition of _SC_HOST_NAME_MAX for OpenBSD and FreeBSD
2 parents fc9a7de + cdb99e3 commit 39f03ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/openbsdlike/netbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ pub const _SC_SEMAPHORES : ::c_int = 42;
310310
pub const _SC_SHARED_MEMORY_OBJECTS : ::c_int = 87;
311311
pub const _SC_SYNCHRONIZED_IO : ::c_int = 31;
312312
pub const _SC_TIMERS : ::c_int = 44;
313+
pub const _SC_HOST_NAME_MAX : ::c_int = 69;
313314

314315
pub const FD_SETSIZE: usize = 0x100;
315316

src/unix/bsd/openbsdlike/openbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
231231
pub const _SC_RTSIG_MAX : ::c_int = 66;
232232
pub const _SC_SIGQUEUE_MAX : ::c_int = 70;
233233
pub const _SC_TIMER_MAX : ::c_int = 93;
234+
pub const _SC_HOST_NAME_MAX : ::c_int = 33;
234235

235236
pub const FD_SETSIZE: usize = 1024;
236237

0 commit comments

Comments
 (0)