diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-07-18 17:26:17 +0200 |
---|---|---|
committer | Sven Eden <sven.eden@prydeworx.com> | 2018-10-29 10:18:21 +0100 |
commit | 48a664bf275a9d5c411a26b2d781470245647fc0 (patch) | |
tree | 233d325ec9a5fc286510e46b660f2c36066b55c6 /src/basic | |
parent | e644f2ca294b161b65b95d924aa35d2ffcb28abe (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.h | 1 |
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 |