0003-Fix-va_list-not-declared.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 5b3dd2599ebde1846750aaf7c79576ad45246ffa Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Tue, 8 Dec 2015 11:41:08 +0000
  4. Subject: [PATCH] Fix va_list not declared
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. When compiling with uClibc-ng the following error is seen.
  9. In file included from ../deps/v8/src/log-utils.cc:5:0:
  10. ../deps/v8/src/log-utils.h:64:39: error: ‘va_list’ has not been declared
  11. void AppendVA(const char* format, va_list args);
  12. This patch fixes the issue by adding the missing #include <cstdarg>. Note
  13. that this fix has already be included upstream, see
  14. https://github.com/nodejs/node/blob/8a43a3d/deps/v8/src/log-utils.h
  15. Signed-off-by: Martin Bark <martin@barkynet.com>
  16. ---
  17. deps/v8/src/log-utils.h | 2 ++
  18. 1 file changed, 2 insertions(+)
  19. diff --git a/deps/v8/src/log-utils.h b/deps/v8/src/log-utils.h
  20. index 87dab52..6714307 100644
  21. --- a/deps/v8/src/log-utils.h
  22. +++ b/deps/v8/src/log-utils.h
  23. @@ -5,6 +5,8 @@
  24. #ifndef V8_LOG_UTILS_H_
  25. #define V8_LOG_UTILS_H_
  26. +#include <cstdarg>
  27. +
  28. #include "src/allocation.h"
  29. #include "src/base/platform/mutex.h"
  30. #include "src/flags.h"
  31. --
  32. 2.5.0