meson: unify linux/stat.h check with other checks and use _GNU_SOURCE
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 15:26:17 +0000 (17:26 +0200)
committerFelipe Sateler <fsateler@debian.org>
Thu, 6 Dec 2018 00:03:34 +0000 (00:03 +0000)
commitacd736b9b8ac97f79e9fc87456b02cdd082cd952
tree9fb73f78720de5d39c3725060b3b9f740de13b05
parente6d2efb602618a0bffa569cf2cf9eee8492901e6
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)

Gbp-Pq: Name meson-unify-linux-stat.h-check-with-other-checks-and-use-.patch
meson.build
src/basic/missing.h