Skip to content

Commit 273da82

Browse files
committed
Fix mismatch of constants
Signed-off-by: Florian Bartels <Florian.Bartels@elektrobit.com>
1 parent 550dd26 commit 273da82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3057,7 +3057,7 @@ fn test_neutrino(target: &str) {
30573057
let mut cfg = ctest_cfg();
30583058
if target.ends_with("_iosock") {
30593059
let qnx_target_val = std::env::var("QNX_TARGET")
3060-
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());
3060+
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());
30613061

30623062
cfg.include(qnx_target_val + "/usr/include/io-sock");
30633063
headers! { cfg:

src/unix/nto/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,6 @@ cfg_if! {
12791279
pub const IFF_NOTRAILERS: c_int = 0x00000020;
12801280
pub const AF_INET6: c_int = 24;
12811281
pub const AF_BLUETOOTH: c_int = 31;
1282-
pub const AF_BLUETOOTH: c_int = 36;
12831282
pub const pseudo_AF_KEY: c_int = 29;
12841283
pub const MSG_NOSIGNAL: c_int = 0x0800;
12851284
pub const MSG_WAITFORONE: c_int = 0x2000;
@@ -1331,7 +1330,7 @@ cfg_if! {
13311330
pub const KERN_MAXID: c_int = 83;
13321331
pub const KERN_PROC_ARGS: c_int = 48;
13331332
pub const KERN_PROC_ENV: c_int = 3;
1334-
pub const KERN_PROC_GID: c_int = 11;
1333+
pub const KERN_PROC_GID: c_int = 7;
13351334
pub const KERN_PROC_RGID: c_int = 8;
13361335
pub const LOCAL_CONNWAIT: c_int = 0x0002;
13371336
pub const LOCAL_CREDS: c_int = 0x0001;
@@ -1376,7 +1375,7 @@ cfg_if! {
13761375
pub const KERN_LOGSIGEXIT: c_int = 34;
13771376
pub const KERN_PROC_ARGS: c_int = 7;
13781377
pub const KERN_PROC_ENV: c_int = 35;
1379-
pub const KERN_PROC_GID: c_int = 7;
1378+
pub const KERN_PROC_GID: c_int = 11;
13801379
pub const KERN_PROC_RGID: c_int = 10;
13811380
pub const LOCAL_CONNWAIT: c_int = 4;
13821381
pub const LOCAL_CREDS: c_int = 2;

0 commit comments

Comments
 (0)