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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 15:40:41 +0000 (17:40 +0200)
commit9c869d08d82c73f62ab3527567858ce4b0cf1257
tree76f4ac3960b515df3cb989843ac61385ca76725c
parentdc6e5724df3d9b2a5863a9aea8fa9413dbfaa23d
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.
meson.build
src/basic/missing.h