diff options
author | Andrew Balmos <andrew@balmos.org> | 2022-03-07 12:43:06 -0500 |
---|---|---|
committer | Andrew Balmos <andrew@balmos.org> | 2022-03-07 12:43:06 -0500 |
commit | 6991bfa691fa4955fe03f75e15bf72dd3c092dfd (patch) | |
tree | 717839c5e545d8e687e5b27e2fe51549f262b8ea /libc-test/build.rs | |
parent | 99045cdc69a409d13f6db292bfd5a7a903244126 (diff) | |
download | rust-libc-6991bfa691fa4955fe03f75e15bf72dd3c092dfd.tar.gz |
Don't test J1939 on musl.
Kernel headers too old.
Signed-off-by: Andrew Balmos <andrew@balmos.org>
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index ee71296ef7..0703ade753 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2917,7 +2917,8 @@ fn test_linux(target: &str) { "asm/mman.h", "linux/can.h", "linux/can/raw.h", - "linux/can/j1939.h", + // FIXME: requires kernel headers >= 5.4.1. + [!musl]: "linux/can/j1939.h", "linux/dccp.h", "linux/errqueue.h", "linux/falloc.h", @@ -3104,6 +3105,12 @@ fn test_linux(target: &str) { // Might differ between kernel versions "open_how" => true, + // FIXME: requires >= 5.4.1 kernel headers + "j1939_filter" if musl => true, + "pgn_t" if musl => true, + "priority_t" if musl => true, + "name_t" if musl => true, + _ => false, } }); @@ -3234,6 +3241,42 @@ fn test_linux(target: &str) { | "CAN_RAW_FILTER_MAX" | "CAN_NPROTO" => true, + // FIXME: Requires >= 5.4.1 kernel headers + | "J1939_FILTER_MAX" + | "J1939_MAX_UNICAST_ADDR" + | "J1939_IDLE_ADDR" + | "J1939_NO_ADDR" + | "J1939_NO_NAME" + | "J1939_PGN_REQUEST" + | "J1939_PGN_ADDRESS_CLAIMED" + | "J1939_PGN_ADDRESS_COMMANDED" + | "J1939_PGN_PDU1_MAX" + | "J1939_PGN_MAX" + | "J1939_NO_PGN" + | "SOL_CAN_J1939" + | "SO_J1939_FILTER" + | "SO_J1939_PROMISC" + | "SO_J1939_SEND_PRIO" + | "SO_J1939_ERRQUEUE" + | "SCM_J1939_DEST_ADDR" + | "SCM_J1939_DEST_NAME" + | "SCM_J1939_PRIO" + | "SCM_J1939_ERRQUEUE" + | "J1939_NLA_PAD" + | "J1939_NLA_BYTES_ACKED" + | "J1939_NLA_TOTAL_SIZE" + | "J1939_NLA_PGN" + | "J1939_NLA_SRC_NAME" + | "J1939_NLA_DEST_NAME" + | "J1939_NLA_SRC_ADDR" + | "J1939_NLA_DEST_ADDR" + | "J1939_EE_INFO_NONE" + | "J1939_EE_INFO_TX_ABORT" + | "J1939_EE_INFO_RX_RTS" + | "J1939_EE_INFO_RX_DPO" + | "J1939_EE_INFO_RX_ABORT" + if musl => true, + // FIXME: Requires recent kernel headers (5.15) | "J1939_NLA_TOTAL_SIZE" | "J1939_NLA_PGN" |