From e7bb06f986e3082023a2dd0795a6e36a30f37e05 Mon Sep 17 00:00:00 2001 From: Oleksndr Kravchuk Date: Tue, 25 Sep 2018 11:31:47 +0200 Subject: Fix compilation with glibc 2.28 (#77) Package compilation fails with GLIBC 2.28: stat.h:56:8: error: redefinition of 'struct statx_timestamp' stat.h:99:8: error: redefinition of 'struct statx' Signed-off-by: Oleksandr Kravchuk --- src/daemon/dlt-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/dlt-daemon.c') diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 0232cb1..5695a4b 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -47,7 +47,7 @@ #endif #include #include -#ifdef linux +#ifdef defined(linux) && defined(__NR_statx) #include #endif -- cgit v1.2.1