Skip to content

Commit 414d82d

Browse files
committed
Positive logic clause and comment
1 parent a07faee commit 414d82d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/unix/nto/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,18 @@ pub const MS_SYNC: c_int = 2;
876876

877877
pub const SCM_RIGHTS: c_int = 0x01;
878878
pub const SCM_TIMESTAMP: c_int = 0x02;
879+
880+
// QNX Network Stack Versioning:
881+
//
882+
// The `if` block targets the legacy `io-pkt` stack.
883+
// - target_env = "nto70": QNX 7.0
884+
// - target_env = "nto71": Standard QNX 7.1 (default legacy stack)
885+
//
886+
// The `else` block targets the modern `io-sock` stack.
887+
// - target_env = "nto71_iosock": QNX 7.1 with the optional new stack
888+
// - target_env = "nto80": QNX 8.0
879889
cfg_if! {
880-
if #[cfg(not(any(target_env = "nto71_iosock", target_env = "nto80")))] {
890+
if #[cfg(any(target_env = "nto70", target_env = "nto71"))]
881891
pub const SCM_CREDS: c_int = 0x04;
882892
pub const IFF_NOTRAILERS: c_int = 0x00000020;
883893
pub const AF_INET6: c_int = 24;

0 commit comments

Comments
 (0)