diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2019-01-21 20:21:12 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2019-01-23 10:49:54 +0100 |
commit | c10e96b3310d9a4a21016d4e9292ace7898e9c5c (patch) | |
tree | e7adafb6a4e01b6a69c01154e0cdbaf2a1b95683 /package/dmalloc/0005-fix-strdup.patch | |
parent | a702f6fcf98891517c9aaf978efc027f5885901f (diff) | |
download | buildroot-c10e96b3310d9a4a21016d4e9292ace7898e9c5c.tar.gz buildroot-c10e96b3310d9a4a21016d4e9292ace7898e9c5c.zip |
dmalloc: fix build with strdup
Fixes:
- http://autobuild.buildroot.org/results/3f2518f7a9e87034cd501ac3d121ea3a33827e7d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/dmalloc/0005-fix-strdup.patch')
-rw-r--r-- | package/dmalloc/0005-fix-strdup.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/dmalloc/0005-fix-strdup.patch b/package/dmalloc/0005-fix-strdup.patch new file mode 100644 index 0000000000..5884df6a89 --- /dev/null +++ b/package/dmalloc/0005-fix-strdup.patch @@ -0,0 +1,24 @@ +From 59d73a473f1c1a31bcba90d314f956d0bcc3de95 Mon Sep 17 00:00:00 2001 +From: Siana Gearz <siana.sg@live.de> +Date: Sat, 8 Sep 2012 22:55:17 +0200 +Subject: [PATCH] Fix strdup + +[Retrieved from: +https://github.com/siana/dmalloc/commit/59d73a473f1c1a31bcba90d314f956d0bcc3de95] +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> +--- + dmalloc.h.3 | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dmalloc.h.3 b/dmalloc.h.3 +index d3d1c13..3fc573a 100644 +--- a/dmalloc.h.3 ++++ b/dmalloc.h.3 +@@ -459,6 +459,7 @@ DMALLOC_PNT valloc(DMALLOC_SIZE size); + * + * string -> String we are duplicating. + */ ++#undef strdup + extern + char *strdup(const char *string); + #endif /* ifndef DMALLOC_STRDUP_MACRO */ |