From: Fred Morcos Date: Tue, 22 Aug 2023 14:59:26 +0000 (+0200) Subject: Meson: Fix strerror_r detection X-Git-Tag: rec-5.1.0-alpha1~80^2~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe10a936ec897789d3035d94693d6df4f26b3e2;p=thirdparty%2Fpdns.git Meson: Fix strerror_r detection --- diff --git a/meson/strerror/meson.build b/meson/strerror/meson.build index bc47e80b26..3bc59d6124 100644 --- a/meson/strerror/meson.build +++ b/meson/strerror/meson.build @@ -1,3 +1,5 @@ +prog = fs.read('strerror_r.cc') + have_strerror_r_decl = cxx.has_header_symbol('string.h', 'strerror_r') have_strerror_r = cxx.has_function('strerror_r', prefix: '#include ') strerror_r_returns_charp = have_strerror_r and cxx.compiles(prog, name: 'strerror_r() returns char *')