]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: use "args" for setting _GNU_SOURCE when checking for functions
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:01:14 +0000 (12:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:10:14 +0000 (12:10 +0100)
commit85db59b794d1ca7f16ea816c916bb4472958cc1b
tree90f56ed2ed591d1f2412be22f3d112c48a0f18c0
parent0e50bfaefde2a01792f4e4bcad7e0d822c74835b
meson: use "args" for setting _GNU_SOURCE when checking for functions

This reworks how we set _GNU_SOURCE when checking for the availability
of functions:

1. We set it for most of the functions we look for. After all we set it
for our entire built anyway, and it's usually how Linux-specific
definitions in glibc are protected these days. Given that we usually
have checks for such modern stuff only anyway, let's just blanket enable
it.

2. Use "args" instead of "prefix" to set the macro. This is what is
suggested in the meson docs, hence let's do it.
meson.build