Skip to content

Commit

Permalink
Haiku: add missing constants from socket.h and unistd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
nielx committed Aug 19, 2021
1 parent 200345c commit 85e7999
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,15 @@ pub const AF_LOCAL: ::c_int = 9;
pub const AF_UNIX: ::c_int = AF_LOCAL;
pub const AF_BLUETOOTH: ::c_int = 10;

pub const PF_UNSPEC: ::c_int = AF_UNSPEC;
pub const PF_INET: ::c_int = AF_INET;
pub const PF_ROUTE: ::c_int = AF_ROUTE;
pub const PF_LINK: ::c_int = AF_LINK;
pub const PF_INET6: ::c_int = AF_INET6;
pub const PF_LOCAL: ::c_int = AF_LOCAL;
pub const PF_UNIX: ::c_int = AF_UNIX;
pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH;

pub const IP_OPTIONS: ::c_int = 1;
pub const IP_HDRINCL: ::c_int = 2;
pub const IP_TOS: ::c_int = 3;
Expand Down Expand Up @@ -987,6 +996,7 @@ pub const _SC_HOST_NAME_MAX: ::c_int = 61;
pub const _SC_REGEXP: ::c_int = 62;
pub const _SC_SYMLOOP_MAX: ::c_int = 63;
pub const _SC_SHELL: ::c_int = 64;
pub const _SC_TTY_NAME_MAX: ::c_int = 65;

pub const PTHREAD_STACK_MIN: ::size_t = 8192;

Expand Down

0 comments on commit 85e7999

Please sign in to comment.