From: Zbigniew Jędrzejewski-Szmek Date: Wed, 19 Apr 2017 20:14:16 +0000 (-0400) Subject: meson: check string.h not strings.h for explicit_bzero X-Git-Tag: v234~286^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38f1ae0f99b84589c1418e30559cd1c2beba20ec;p=thirdparty%2Fsystemd.git meson: check string.h not strings.h for explicit_bzero I used strings.h because that's what explicit_bzero(3) says. But glibc defines it in string.h. There are no other available implementations atm (musl does not define it, bionic aliases it to memset in openbsd-compat.h, yikes). We also include just string.h from the code. So just look for the function in string.h, and if it ever appears in other places, we can change the detection and includes. --- diff --git a/meson.build b/meson.build index 65cb3889fda..52ef13dee77 100644 --- a/meson.build +++ b/meson.build @@ -388,7 +388,7 @@ foreach ident : [ #include '''], ['copy_file_range', '''#include #include '''], - ['explicit_bzero' , '''#include '''], + ['explicit_bzero' , '''#include '''], ] have = cc.has_function(ident[0], prefix : ident[1])