xref: /OK3568_Linux_fs/buildroot/package/dmalloc/0005-fix-strndup.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 005d92c2cebbde5c8623daa29725f7a62b18df7c Mon Sep 17 00:00:00 2001
2From: Siana Gearz <siana.sg@live.de>
3Date: Sat, 8 Sep 2012 22:44:35 +0200
4Subject: [PATCH] Fix strndup
5
6[Retrieved from:
7https://github.com/siana/dmalloc/commit/005d92c2cebbde5c8623daa29725f7a62b18df7c]
8Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
9---
10 dmalloc.h.3 | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/dmalloc.h.3 b/dmalloc.h.3
14index 8bda997..fb538a8 100644
15--- a/dmalloc.h.3
16+++ b/dmalloc.h.3
17@@ -429,6 +429,7 @@ char	*strdup(const char *string);
18  *
19  * len -> Length of the string to duplicate.
20  */
21+#undef strndup
22 extern
23 char	*strndup(const char *string, const DMALLOC_SIZE len);
24
25