From 0e2be0c217028e73073e7f9ccb010cc8b4d756db Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Thu, 30 Jul 2015 17:31:31 +0200 Subject: build-sys: check for strndupa strndupa is a GNU extension, therefore it's not available for all libc libraries (musl). This patch is based on the one proposed by Emil Renner Berthing for systemd [1]. [1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html Signed-off-by: Romain Naour --- src/shared/selinux-util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/selinux-util.c') diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c index 4e0866be5f..a18a5a7230 100644 --- a/src/shared/selinux-util.c +++ b/src/shared/selinux-util.c @@ -31,6 +31,7 @@ #include "strv.h" #include "path-util.h" #include "selinux-util.h" +#include "missing.h" #ifdef HAVE_SELINUX DEFINE_TRIVIAL_CLEANUP_FUNC(security_context_t, freecon); -- cgit v1.2.3-54-g00ecf