From cc22997fd215c4b7c34ac69978bcaffbe2adc5f5 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 4 Dec 2018 17:36:48 +0100 Subject: Add AF_XDP, PF_XDP and SOL_XDP consts for linux --- libc-test/build.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc-test/build.rs') 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" -- cgit v1.2.1