]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Fix strerror_r detection
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 14:59:26 +0000 (16:59 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:47 +0000 (13:28 +0100)
meson/strerror/meson.build

index bc47e80b26072a3ac75f496ea36547c5359ed8c8..3bc59d61245aaed416306ed002cb7823cf9097c3 100644 (file)
@@ -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 <string.h>')
 strerror_r_returns_charp = have_strerror_r and cxx.compiles(prog, name: 'strerror_r() returns char *')