summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-07-18 17:26:17 +0200
committerSven Eden <sven.eden@prydeworx.com>2018-10-29 10:18:21 +0100
commit48a664bf275a9d5c411a26b2d781470245647fc0 (patch)
tree233d325ec9a5fc286510e46b660f2c36066b55c6 /src/basic
parente644f2ca294b161b65b95d924aa35d2ffcb28abe (diff)
meson: unify linux/stat.h check with other checks and use _GNU_SOURCE
Using _GNU_SOURCE is better because that's how we include the headers in the actual build, and some headers define different stuff when it is defined. sys/stat.h for example defines 'struct statx' conditionally. (cherry picked from commit 9c869d08d82c73f62ab3527567858ce4b0cf1257)
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/missing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index eddbb275e..7b267a212 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -28,6 +28,7 @@
/// Additional includes needed by elogind
#include "musl_missing.h"
#if !HAVE_STRUCT_STATX_IN_SYS_STAT_H
+#if WANT_LINUX_STAT_H
#endif
#if HAVE_AUDIT