[Mesa-dev] [PATCH 00/14] BSD portability (Meson, ANV, RADV, VC4/5, SWR)

Daniel Stone daniel at fooishbar.org
Fri Jan 19 16:50:17 UTC 2018


Hi,

On 19 January 2018 at 16:26, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 18 January 2018 at 21:30, Dylan Baker <dylan at pnwbakers.com> wrote:
>> I'm willing to defer to you on this, if you think that checking headers for
>> ETIME is too fragile then we can leave it (you definitely have more experience
>> in these things). I'm just concerned it's going to turn into an endless
>> whack-a-mole game.
>
> I'll kindly ask Greg to open a bug with FreeBSD on the topic - they
> seemed positive on the Elf topic.
> Alternatively we can catch most of the fallout via a
> check_compile("#include <errno.h>\n main() {return ETIME;}")
>
> Not sure of Meson has an equivalent though.

You can do cc.compiles('...') as you said, or as Dylan mentioned
up-thread, the far more direct:
  cc.has.header_symbol('errno.h', 'ETIME')

Cheers,
Daniel


More information about the mesa-dev mailing list