0001-Add-missing-stdarg.h-include.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From dc135d8f1f2a843cebd4da0d4b17828911e162a6 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 1 Nov 2014 18:53:47 +0100
  4. Subject: [PATCH] Add missing <stdarg.h> include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes:
  9. In file included from userspace/kp_bcwrite.c:32:0:
  10. userspace/kp_util.h:74:14: error: unknown type name ‘va_list’
  11. ErrMsg em, va_list argp);
  12. ^
  13. userspace/kp_util.h:76:42: error: unknown type name ‘va_list’
  14. const char *kp_sprintfv(const char *fmt, va_list argp);
  15. ^
  16. In file included from userspace/kp_lex.c:28:0:
  17. userspace/kp_util.h:74:14: error: unknown type name ‘va_list’
  18. ErrMsg em, va_list argp);
  19. ^
  20. userspace/kp_util.h:76:42: error: unknown type name ‘va_list’
  21. const char *kp_sprintfv(const char *fmt, va_list argp);
  22. Submitted upstream: https://github.com/ktap/ktap/pull/77
  23. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  24. ---
  25. userspace/kp_util.h | 2 ++
  26. 1 file changed, 2 insertions(+)
  27. diff --git a/userspace/kp_util.h b/userspace/kp_util.h
  28. index af0b221..5778dc4 100644
  29. --- a/userspace/kp_util.h
  30. +++ b/userspace/kp_util.h
  31. @@ -1,6 +1,8 @@
  32. #ifndef __KTAP_UTIL_H__
  33. #define __KTAP_UTIL_H__
  34. +#include <stdarg.h>
  35. +
  36. #include "../include/ktap_bc.h"
  37. #include "../include/ktap_err.h"
  38. --
  39. 2.0.0