From 2d2ad16f9328a7cbb3f5b8479ae93eb923a0727f Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Thu, 19 Apr 2018 00:28:14 +0200 Subject: [PATCH] purgatory/string.c: avoid inclusion of string.h Fix purgatory/string.c:39:5: error: conflicting types for 'memcmp' Upstream-Status: Inappropriate [klibc specific] Signed-off-by: Andrea Adami --- purgatory/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/purgatory/string.c b/purgatory/string.c index f06c460..c5e978a 100644 --- a/purgatory/string.c +++ b/purgatory/string.c @@ -1,5 +1,7 @@ #include +#ifndef __KLIBC__ #include +#endif size_t strnlen(const char *s, size_t max) { -- 2.7.4