From bf1ab2b6a1900e50b10d3a7846b2e72b55510aa7 Mon Sep 17 00:00:00 2001
From: gnzlbg <gonzalobg88@gmail.com>
Date: Wed, 29 May 2019 14:57:56 +0200
Subject: [PATCH] CI sparc64 glibc version does not have statx

---
 libc-test/build.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libc-test/build.rs b/libc-test/build.rs
index b199d1cf..50879064 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -1860,6 +1860,7 @@ fn test_linux(target: &str) {
     let x32 = target.contains("x32");
     let mips = target.contains("mips");
     let mips32_musl = mips && !target.contains("64") && musl;
+    let sparc64 = target.contains("sparc64");
 
     let mut cfg = ctest::TestGenerator::new();
     cfg.define("_GNU_SOURCE", None);
@@ -2193,6 +2194,10 @@ fn test_linux(target: &str) {
             // https://github.com/gnzlbg/ctest/issues/68
             "lio_listio" if musl => true,
 
+            // FIXME: the glibc version used by the Sparc64 build jobs
+            // which use Debian 10.0 is too old.
+            "statx" if sparc64 => true,
+
             _ => false,
         }
     });
-- 
GitLab