0001-memutil.h-add-missing-include-for-va_list.patch 855 B

12345678910111213141516171819202122232425262728293031
  1. From 36aad32283eae5b47a05e3adfa3f5f6a7b1b55c0 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sun, 11 Jun 2017 10:02:39 +0200
  4. Subject: [PATCH] memutil.h: add missing include for va_list
  5. Fixes compile error with uclibc-ng:
  6. In file included from mcelog.c:51:0:
  7. memutil.h:4:48: error: unknown type name 'va_list'
  8. int xvasprintf(char **ret, const char *format, va_list ap);
  9. Patch sent upstream: https://github.com/andikleen/mcelog/pull/54
  10. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  11. ---
  12. memutil.h | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/memutil.h b/memutil.h
  15. index 81028e9..dbed7fa 100644
  16. --- a/memutil.h
  17. +++ b/memutil.h
  18. @@ -1,4 +1,5 @@
  19. #include <stdlib.h>
  20. +#include <stdarg.h>
  21. int xasprintf(char **strp, const char *fmt, ...);
  22. int xvasprintf(char **ret, const char *format, va_list ap);
  23. --
  24. 2.11.0