diff options
author | Josh Triplett <josh@joshtriplett.org> | 2023-05-14 11:26:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-14 11:26:13 +0200 |
commit | d1df7024408f3c103d7d80fec4b25e165890afa1 (patch) | |
tree | feb0732f9e7853c9d4eef9b47fade88066c798f1 /libc-test/build.rs | |
parent | fe563a814e360527654cdc90701ac06898bc8f97 (diff) | |
parent | ca85ccb53ed79212ba7e170d00e555801aae8304 (diff) | |
download | rust-libc-d1df7024408f3c103d7d80fec4b25e165890afa1.tar.gz |
Merge pull request #3247 from marcelbuesing/canxlmaster
Add linux canxl constants and canxl frame struct
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 2f993486ef..f86dfbcbe6 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3469,6 +3469,8 @@ fn test_linux(target: &str) { "sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo" | "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true, + // FIXME: requires >= 6.1 kernel headers + "canxl_frame" => true, _ => false, } }); @@ -3651,7 +3653,22 @@ fn test_linux(target: &str) { "FUTEX_LOCK_PI2" => true, // Added in linux 6.1 - "STATX_DIOALIGN" => true, + "STATX_DIOALIGN" + | "CAN_RAW_XL_FRAMES" + | "CANXL_HDR_SIZE" + | "CANXL_MAX_DLC" + | "CANXL_MAX_DLC_MASK" + | "CANXL_MAX_DLEN" + | "CANXL_MAX_MTU" + | "CANXL_MIN_DLC" + | "CANXL_MIN_DLEN" + | "CANXL_MIN_MTU" + | "CANXL_MTU" + | "CANXL_PRIO_BITS" + | "CANXL_PRIO_MASK" + | "CANXL_SEC" + | "CANXL_XLF" + => true, // FIXME: Parts of netfilter/nfnetlink*.h require more recent kernel headers: | "RTNLGRP_MCTP_IFADDR" // linux v5.17+ |