0006-several-compile-fixes.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 2477dbea92d4111fb70beaf975bce0eeee9ac8e5 Mon Sep 17 00:00:00 2001
  2. From: Richard Leitner <richard.leitner@skidata.com>
  3. Date: Fri, 1 Jun 2018 14:28:05 +0200
  4. Subject: [PATCH 6/7] several compile fixes
  5. This patch was taken from Debian's libmxml 2.11-1 source:
  6. 07_compile_fixes.patch
  7. ---
  8. mxml.h | 2 +-
  9. mxmldoc.c | 10 +++++++++-
  10. 2 files changed, 10 insertions(+), 2 deletions(-)
  11. diff --git a/mxml.h b/mxml.h
  12. index 5ad96b8..e78b8e9 100644
  13. --- a/mxml.h
  14. +++ b/mxml.h
  15. @@ -28,7 +28,7 @@
  16. # include <string.h>
  17. # include <ctype.h>
  18. # include <errno.h>
  19. -
  20. +# include <stdarg.h>
  21. /*
  22. * Constants...
  23. diff --git a/mxmldoc.c b/mxmldoc.c
  24. index de5c8a7..bbdf758 100644
  25. --- a/mxmldoc.c
  26. +++ b/mxmldoc.c
  27. @@ -37,7 +37,15 @@ extern char **environ;
  28. # include "zipc.h"
  29. #endif /* HAVE_ZLIB_H */
  30. -
  31. +# ifndef HAVE_STRLCPY
  32. +extern size_t _mxml_strlcpy(char *, const char *, size_t);
  33. +# define strlcpy _mxml_strlcpy
  34. +# endif /* !HAVE_STRLCPY */
  35. +
  36. +#ifndef HAVE_STRLCAT
  37. +extern size_t _mxml_strlcat( char *, const char *, size_t);
  38. +#define strlcat _mxml_strlcat
  39. +#endif
  40. /*
  41. * This program scans source and header files and produces public API
  42. * documentation for code that conforms to the CUPS Configuration
  43. --
  44. 2.11.0