diff options
author | Oleksndr Kravchuk <sashko@users.noreply.github.com> | 2018-09-25 11:31:47 +0200 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-09-25 11:31:47 +0200 |
commit | e7bb06f986e3082023a2dd0795a6e36a30f37e05 (patch) | |
tree | 2e9698c8f1e7db9483f176dbcd844067d5e2b80a | |
parent | 2659d3b3afe07942263a78ac907ac814de3032b9 (diff) | |
download | DLT-daemon-e7bb06f986e3082023a2dd0795a6e36a30f37e05.tar.gz |
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 <oleksandr.kravchuk@pelagicore.com>
-rw-r--r-- | src/daemon/dlt-daemon.c | 2 | ||||
-rw-r--r-- | src/daemon/dlt_daemon_client.c | 2 | ||||
-rw-r--r-- | src/daemon/dlt_daemon_socket.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 <sys/stat.h> #include <sys/time.h> -#ifdef linux +#ifdef defined(linux) && defined(__NR_statx) #include <linux/stat.h> #endif diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c index 7c6e1bd..cb59239 100644 --- a/src/daemon/dlt_daemon_client.c +++ b/src/daemon/dlt_daemon_client.c @@ -46,7 +46,7 @@ #endif #include <sys/stat.h> #include <sys/time.h> -#ifdef linux +#ifdef defined(linux) && defined(__NR_statx) #include <linux/stat.h> #endif diff --git a/src/daemon/dlt_daemon_socket.c b/src/daemon/dlt_daemon_socket.c index 961556c..4ae1d86 100644 --- a/src/daemon/dlt_daemon_socket.c +++ b/src/daemon/dlt_daemon_socket.c @@ -49,7 +49,7 @@ #endif #include <sys/stat.h> #include <sys/time.h> -#ifdef linux +#ifdef defined(linux) && defined(__NR_statx) #include <linux/stat.h> #endif |