summaryrefslogtreecommitdiff
path: root/libc-test/build.rs
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-12-04 17:36:48 +0100
committerTobias Klauser <tklauser@distanz.ch>2018-12-04 21:04:13 +0100
commitcc22997fd215c4b7c34ac69978bcaffbe2adc5f5 (patch)
treeba86ff820eecaf9c0dc60134e1ae4765cc571cfb /libc-test/build.rs
parent89faefe20bbe734b77be05eb43b8ae1b7776d26f (diff)
downloadrust-libc-cc22997fd215c4b7c34ac69978bcaffbe2adc5f5.tar.gz
Add AF_XDP, PF_XDP and SOL_XDP consts for linux
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r--libc-test/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 2d6327c448..7e0928fe00 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -672,6 +672,9 @@ fn main() {
// shouldn't be used in code anyway...
"AF_MAX" | "PF_MAX" => true,
+ // These are not in a glibc release yet, only in kernel headers.
+ "AF_XDP" | "PF_XDP" | "SOL_XDP" if linux => true,
+
// Present on historical versions of iOS, but now removed in more
// recent SDKs
"ARPOP_REQUEST"