Skip to content

Commit c0d8cf1

Browse files
committed
Fix mismatch of constants
Signed-off-by: Florian Bartels <Florian.Bartels@elektrobit.com>
1 parent be80450 commit c0d8cf1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

libc-test/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ fn test_neutrino(target: &str) {
30353035
let mut cfg = ctest_cfg();
30363036
if target.ends_with("_iosock") {
30373037
let qnx_target_val = std::env::var("QNX_TARGET")
3038-
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());
3038+
.unwrap_or_else(|_| "QNX_TARGET_not_set_please_source_qnxsdp".into());
30393039

30403040
cfg.include(qnx_target_val + "/usr/include/io-sock");
30413041
headers! { cfg:
@@ -3204,9 +3204,6 @@ fn test_neutrino(target: &str) {
32043204
// Does not exist in Neutrino
32053205
"locale_t" => true,
32063206

3207-
// `c_char_def` is always public but not always reexported.
3208-
"c_char_def" => true,
3209-
32103207
// FIXME: "'__uint128' undeclared" in C
32113208
"__uint128" => true,
32123209

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)