From cc4ccc1429f79df8db4d0a84f4c1581d36b41576 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 21 Feb 2022 04:39:49 -0600 Subject: [PATCH] meson: use _BSD_SOURCE for checking for symbols --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5136b21..6985bb1 100644 --- a/meson.build +++ b/meson.build @@ -16,7 +16,7 @@ check_functions = [ ] foreach f : check_functions - if cc.has_function(f.get(1), prefix : '#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1)) + if cc.has_function(f.get(1), prefix : '#define _BSD_SOURCE\n#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1), prefix : '#define _BSD_SOURCE') cdata.set(f.get(0), 1) endif endforeach