summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorGeoffrey Thomas <geofft@ldpreload.com>2015-08-26 20:38:02 -0400
committerCarl Lerche <me@carllerche.com>2015-09-03 13:14:20 -0700
commit40534ecc167f62242c34990e242be5f7cc2b4fbc (patch)
treeac25d017327ae70ef653963632bd6fcaa5191c4e /src/sys
parent5255daec9c79c597c192891da0764a2812d2228d (diff)
downloadnix-40534ecc167f62242c34990e242be5f7cc2b4fbc.zip
Fix test failures on FreeBSD
Diffstat (limited to 'src/sys')
-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;