Skip to content

Commit c70efd8

Browse files
committed
TCP_KEEP* constants are netbsd specific
they doesn't exists on OpenBSD. put them under NetBSD specific tree.
1 parent bfe0e32 commit c70efd8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@ pub const IPV6_RECVPKTINFO: ::c_int = 36;
430430
pub const IPV6_PKTINFO: ::c_int = 46;
431431

432432
pub const TCP_NODELAY: ::c_int = 0x01;
433-
pub const TCP_KEEPIDLE: ::c_int = 3;
434-
pub const TCP_KEEPINTVL: ::c_int = 5;
435-
pub const TCP_KEEPCNT: ::c_int = 6;
436-
pub const TCP_KEEPINIT: ::c_int = 7;
437433

438434
pub const SOL_SOCKET: ::c_int = 0xffff;
439435
pub const SO_DEBUG: ::c_int = 0x01;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ pub const IP_RECVPKTINFO: ::c_int = 26;
381381
pub const IPV6_JOIN_GROUP: ::c_int = 12;
382382
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
383383

384+
pub const TCP_KEEPIDLE: ::c_int = 3;
385+
pub const TCP_KEEPINTVL: ::c_int = 5;
386+
pub const TCP_KEEPCNT: ::c_int = 6;
387+
pub const TCP_KEEPINIT: ::c_int = 7;
388+
384389
pub const SOCK_CONN_DGRAM: ::c_int = 6;
385390
pub const SOCK_DCCP: ::c_int = SOCK_CONN_DGRAM;
386391
pub const SOCK_NOSIGPIPE: ::c_int = 0x40000000;

0 commit comments

Comments
 (0)