0001-undefined-strdup-macro.patch 717 B

1234567891011121314151617181920212223242526272829
  1. From 9c2438e85e4d7deb9422be257a25e8ab16093821 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 2 Dec 2016 14:02:02 -0800
  4. Subject: [PATCH] undefined strdup macro
  5. build fails due to strdup define in string2.h
  6. system header.
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. ---
  9. dmalloc.h.3 | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/dmalloc.h.3 b/dmalloc.h.3
  12. index 8bda997..b70c07e 100644
  13. --- a/dmalloc.h.3
  14. +++ b/dmalloc.h.3
  15. @@ -1,5 +1,8 @@
  16. /* NOTE: start of $Id: dmalloc.h.4,v 1.15 2007/05/14 17:23:37 gray Exp $ */
  17. +#undef strndup
  18. +#undef strdup
  19. +
  20. /* dmalloc version defines */
  21. #define DMALLOC_VERSION_MAJOR 5 /* X.0.0 */
  22. #define DMALLOC_VERSION_MINOR 5 /* 0.X.0 */
  23. --
  24. 2.10.2