Skip to content

Commit

Permalink
Fix mismatch of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
flba-eb committed Dec 3, 2024
1 parent 1de98b8 commit 3f75bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ fn test_neutrino(target: &str) {
let mut cfg = ctest_cfg();
if target.ends_with("_iosock") {
let qnx_target_val = std::env::var("QNX_TARGET")
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());

cfg.include(qnx_target_val + "/usr/include/io-sock");
headers! { cfg:
Expand Down
5 changes: 2 additions & 3 deletions src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,6 @@ cfg_if! {
pub const IFF_NOTRAILERS: c_int = 0x00000020;
pub const AF_INET6: c_int = 24;
pub const AF_BLUETOOTH: c_int = 31;
pub const AF_BLUETOOTH: c_int = 36;
pub const pseudo_AF_KEY: c_int = 29;
pub const MSG_NOSIGNAL: c_int = 0x0800;
pub const MSG_WAITFORONE: c_int = 0x2000;
Expand Down Expand Up @@ -1331,7 +1330,7 @@ cfg_if! {
pub const KERN_MAXID: c_int = 83;
pub const KERN_PROC_ARGS: c_int = 48;
pub const KERN_PROC_ENV: c_int = 3;
pub const KERN_PROC_GID: c_int = 11;
pub const KERN_PROC_GID: c_int = 7;
pub const KERN_PROC_RGID: c_int = 8;
pub const LOCAL_CONNWAIT: c_int = 0x0002;
pub const LOCAL_CREDS: c_int = 0x0001;
Expand Down Expand Up @@ -1376,7 +1375,7 @@ cfg_if! {
pub const KERN_LOGSIGEXIT: c_int = 34;
pub const KERN_PROC_ARGS: c_int = 7;
pub const KERN_PROC_ENV: c_int = 35;
pub const KERN_PROC_GID: c_int = 7;
pub const KERN_PROC_GID: c_int = 11;
pub const KERN_PROC_RGID: c_int = 10;
pub const LOCAL_CONNWAIT: c_int = 4;
pub const LOCAL_CREDS: c_int = 2;
Expand Down

0 comments on commit 3f75bbc

Please sign in to comment.