0001-Fix-compilation-with-g-4.8.2.patch 814 B

12345678910111213141516171819202122232425262728293031
  1. From 8a8016f6d2af335ab205aa40d5274fc9b0c7a566 Mon Sep 17 00:00:00 2001
  2. From: Steve James <ste@junkomatic.net>
  3. Date: Sun, 5 Apr 2015 16:29:51 +0200
  4. Subject: [PATCH 1/2] Fix compilation with g++ 4.8.2
  5. Where db_iter.cc fails to get a typedef for ssize_t when compiled by
  6. GCC.
  7. Upstream-Status: Submitted [https://github.com/google/leveldb/issues/233]
  8. Signed-off-by: Steve James <ste@junkomatic.net>
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. ---
  11. db/db_iter.cc | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/db/db_iter.cc b/db/db_iter.cc
  14. index 3b2035e..c2e5f35 100644
  15. --- a/db/db_iter.cc
  16. +++ b/db/db_iter.cc
  17. @@ -13,6 +13,7 @@
  18. #include "util/logging.h"
  19. #include "util/mutexlock.h"
  20. #include "util/random.h"
  21. +#include <sys/types.h> // for ssize_t
  22. namespace leveldb {
  23. --
  24. 2.1.0