0001-Fix-musl-compile.patch 864 B

12345678910111213141516171819202122232425262728293031323334
  1. From 17562259fb6684f351a70b98b4f3b438927ba1aa Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Mon, 11 Jul 2016 22:58:31 +0200
  4. Subject: [PATCH] Fix musl compile.
  5. Include proper config.h (via log4cpp/Portability.hh) to fix the
  6. evaluate of LOG4CPP_HAVE_STDINT_H in the file tests/Clock.hh
  7. Fixes:
  8. Clock.hh:17:13: error: 'int64_t' does not name a type
  9. typedef int64_t usec_t;
  10. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  11. ---
  12. log4cpp/tests/Clock.hh | 2 ++
  13. 1 file changed, 2 insertions(+)
  14. diff --git a/log4cpp/tests/Clock.hh b/log4cpp/tests/Clock.hh
  15. index 4bf0ca4..45c6467 100644
  16. --- a/log4cpp/tests/Clock.hh
  17. +++ b/log4cpp/tests/Clock.hh
  18. @@ -6,6 +6,8 @@
  19. #ifndef __CLOCK_H
  20. #define __CLOCK_H
  21. +#include <log4cpp/Portability.hh>
  22. +
  23. #ifdef LOG4CPP_HAVE_STDINT_H
  24. #include <stdint.h>
  25. #endif // LOG4CPP_HAVE_STDINT_H
  26. --
  27. 2.8.1