chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:41 +0000 (07:49 +0200)
commite972120d60a53ec2a179cedb632efdd69b37365a
tree2dca2d4f0de2aad5fce13d5c57cbf9064f979cb2
parent2c6a42ac57f8096e29e4d71cb758f04a71ebba77
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