0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 90eba5458cb4ac2f83cac8aa550927876e6a9a09 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= <lnicola@dend.ro>
  3. Date: Wed, 5 Mar 2025 15:42:46 +0200
  4. Subject: [PATCH] Add missing include (#13365)
  5. * see more details: http://errors.yoctoproject.org/Errors/Details/851177/
  6. In file included from TOPDIR/tmp/work/core2-64-oe-linux/rocksdb/9.10.0/git/db/blob/blob_file_meta.cc:6:
  7. TOPDIR/tmp/work/core2-64-oe-linux/rocksdb/9.10.0/git/db/blob/blob_file_meta.h:28:7: error: 'uint64_t' has not been declared
  8. 28 | uint64_t blob_file_number, uint64_t total_blob_count,
  9. | ^~~~~~~~
  10. TOPDIR/tmp/work/core2-64-oe-linux/rocksdb/9.10.0/git/db/blob/blob_file_meta.h:15:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  11. 14 | #include "rocksdb/rocksdb_namespace.h"
  12. +++ |+#include <cstdint>
  13. 15 |
  14. TOPDIR/tmp/work/core2-64-oe-linux/rocksdb/9.10.0/git/db/blob/blob_file_meta.h:28:34: error: 'uint64_t' has not been declared
  15. 28 | uint64_t blob_file_number, uint64_t total_blob_count,
  16. | ^~~~~~~~
  17. ...
  18. * See also: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
  19. Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/13437]
  20. Signed-off-by: mark.yang <mark.yang@lge.com>
  21. ---
  22. db/blob/blob_file_meta.h | 1 +
  23. include/rocksdb/trace_record.h | 1 +
  24. include/rocksdb/write_batch_base.h | 1 +
  25. 3 files changed, 3 insertions(+)
  26. diff --git a/db/blob/blob_file_meta.h b/db/blob/blob_file_meta.h
  27. index d7c8a1243..2e47726f8 100644
  28. --- a/db/blob/blob_file_meta.h
  29. +++ b/db/blob/blob_file_meta.h
  30. @@ -6,6 +6,7 @@
  31. #pragma once
  32. #include <cassert>
  33. +#include <cstdint>
  34. #include <iosfwd>
  35. #include <memory>
  36. #include <string>
  37. diff --git a/include/rocksdb/trace_record.h b/include/rocksdb/trace_record.h
  38. index 8f9c3ee2f..d321f5387 100644
  39. --- a/include/rocksdb/trace_record.h
  40. +++ b/include/rocksdb/trace_record.h
  41. @@ -5,6 +5,7 @@
  42. #pragma once
  43. +#include <cstdint>
  44. #include <memory>
  45. #include <string>
  46. #include <vector>
  47. diff --git a/include/rocksdb/write_batch_base.h b/include/rocksdb/write_batch_base.h
  48. index 3334a1292..43b186029 100644
  49. --- a/include/rocksdb/write_batch_base.h
  50. +++ b/include/rocksdb/write_batch_base.h
  51. @@ -9,6 +9,7 @@
  52. #pragma once
  53. #include <cstddef>
  54. +#include <cstdint>
  55. #include "rocksdb/attribute_groups.h"
  56. #include "rocksdb/rocksdb_namespace.h"