diff options
author | Sébastien Marie <semarie@online.fr> | 2018-07-14 06:39:58 +0200 |
---|---|---|
committer | Sébastien Marie <semarie@online.fr> | 2018-07-14 06:39:58 +0200 |
commit | c70efd87cd7d6a5203dbbf3c6d7b3cfe9f0a261c (patch) | |
tree | 29f38bf0719c1844dcdd615fa2f6b9b816706bb6 | |
parent | bfe0e32d1260d5dd317aa144e757c1edbcc08ea3 (diff) | |
download | rust-libc-c70efd87cd7d6a5203dbbf3c6d7b3cfe9f0a261c.tar.gz |
TCP_KEEP* constants are netbsd specific
they doesn't exists on OpenBSD. put them under NetBSD specific tree.
-rw-r--r-- | src/unix/bsd/netbsdlike/mod.rs | 4 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index 1b7576e768..62a0ffc059 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -430,10 +430,6 @@ pub const IPV6_RECVPKTINFO: ::c_int = 36; pub const IPV6_PKTINFO: ::c_int = 46; pub const TCP_NODELAY: ::c_int = 0x01; -pub const TCP_KEEPIDLE: ::c_int = 3; -pub const TCP_KEEPINTVL: ::c_int = 5; -pub const TCP_KEEPCNT: ::c_int = 6; -pub const TCP_KEEPINIT: ::c_int = 7; pub const SOL_SOCKET: ::c_int = 0xffff; pub const SO_DEBUG: ::c_int = 0x01; diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 01dd188495..cf1d74842f 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -381,6 +381,11 @@ pub const IP_RECVPKTINFO: ::c_int = 26; pub const IPV6_JOIN_GROUP: ::c_int = 12; pub const IPV6_LEAVE_GROUP: ::c_int = 13; +pub const TCP_KEEPIDLE: ::c_int = 3; +pub const TCP_KEEPINTVL: ::c_int = 5; +pub const TCP_KEEPCNT: ::c_int = 6; +pub const TCP_KEEPINIT: ::c_int = 7; + pub const SOCK_CONN_DGRAM: ::c_int = 6; pub const SOCK_DCCP: ::c_int = SOCK_CONN_DGRAM; pub const SOCK_NOSIGPIPE: ::c_int = 0x40000000; |