summaryrefslogtreecommitdiff
path: root/src/sys/socket/consts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/socket/consts.rs')
-rw-r--r--src/sys/socket/consts.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/socket/consts.rs b/src/sys/socket/consts.rs
index 00007480..ddd77c05 100644
--- a/src/sys/socket/consts.rs
+++ b/src/sys/socket/consts.rs
@@ -109,6 +109,11 @@ mod os {
pub const AF_UNIX: c_int = 1;
pub const AF_LOCAL: c_int = AF_UNIX;
pub const AF_INET: c_int = 2;
+ #[cfg(target_os = "openbsd")]
+ pub const AF_INET6: c_int = 26;
+ #[cfg(target_os = "freebsd")]
+ pub const AF_INET6: c_int = 28;
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
pub const AF_INET6: c_int = 30;
pub const SOCK_STREAM: c_int = 1;