0001-Common-log.h-time-2-needs-time.h.patch 1017 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From a7a48e1cda997afbfcdd985c594c3ec0516b6279 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Tue, 25 Sep 2018 22:49:58 +0200
  4. Subject: [PATCH] Common/log.h: time(2) needs <time.h>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Otherwise the build fails with:
  9. In file included from ./linux/os.h:28:0,
  10. from Common/DtaOptions.cpp:20:
  11. ./Common/log.h: In function ‘std::__cxx11::string NowTime()’:
  12. ./Common/log.h:349:12: error: ‘time’ was not declared in this scope
  13. time(&t);
  14. Upstream-status: https://github.com/Drive-Trust-Alliance/sedutil/pull/250
  15. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  16. ---
  17. Common/log.h | 1 +
  18. 1 file changed, 1 insertion(+)
  19. diff --git a/Common/log.h b/Common/log.h
  20. index 8c08c40..2b718ad 100644
  21. --- a/Common/log.h
  22. +++ b/Common/log.h
  23. @@ -341,6 +341,7 @@ inline std::string NowTime() {
  24. #else
  25. +#include <time.h>
  26. #include <sys/time.h>
  27. inline std::string NowTime() {
  28. --
  29. 2.11.0