blob: db0d763178242bf946c93c6f576c40e3b2668a24 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 9bb386018257e1e18ffe0e925201946515b31080 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Andrea Adami <andrea.adami@gmail.com>
3Date: Thu, 19 Apr 2018 00:28:14 +0200
4Subject: [PATCH] purgatory/string.c: avoid inclusion of string.h
5
6Fix
7
8 purgatory/string.c:39:5: error: conflicting types for 'memcmp'
9
10Upstream-Status: Inappropriate [klibc specific]
11Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
12
13---
14 purgatory/string.c | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/purgatory/string.c b/purgatory/string.c
18index f06c460..c5e978a 100644
19--- a/purgatory/string.c
20+++ b/purgatory/string.c
21@@ -1,5 +1,7 @@
22 #include <stddef.h>
23+#ifndef __KLIBC__
24 #include <string.h>
25+#endif
26
27 size_t strnlen(const char *s, size_t max)
28 {