Skip to content

Commit 85e7999

Browse files
committed
Haiku: add missing constants from socket.h and unistd.h
1 parent 200345c commit 85e7999

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,15 @@ pub const AF_LOCAL: ::c_int = 9;
817817
pub const AF_UNIX: ::c_int = AF_LOCAL;
818818
pub const AF_BLUETOOTH: ::c_int = 10;
819819

820+
pub const PF_UNSPEC: ::c_int = AF_UNSPEC;
821+
pub const PF_INET: ::c_int = AF_INET;
822+
pub const PF_ROUTE: ::c_int = AF_ROUTE;
823+
pub const PF_LINK: ::c_int = AF_LINK;
824+
pub const PF_INET6: ::c_int = AF_INET6;
825+
pub const PF_LOCAL: ::c_int = AF_LOCAL;
826+
pub const PF_UNIX: ::c_int = AF_UNIX;
827+
pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH;
828+
820829
pub const IP_OPTIONS: ::c_int = 1;
821830
pub const IP_HDRINCL: ::c_int = 2;
822831
pub const IP_TOS: ::c_int = 3;
@@ -987,6 +996,7 @@ pub const _SC_HOST_NAME_MAX: ::c_int = 61;
987996
pub const _SC_REGEXP: ::c_int = 62;
988997
pub const _SC_SYMLOOP_MAX: ::c_int = 63;
989998
pub const _SC_SHELL: ::c_int = 64;
999+
pub const _SC_TTY_NAME_MAX: ::c_int = 65;
9901000

9911001
pub const PTHREAD_STACK_MIN: ::size_t = 8192;
9921002

0 commit comments

Comments
 (0)