Skip to content

Fix build on Fedora 43: add missing <cstdint> include#877

Open
Chessing234 wants to merge 1 commit intocmu-db:masterfrom
Chessing234:fix/issue-856-missing-cstdint
Open

Fix build on Fedora 43: add missing <cstdint> include#877
Chessing234 wants to merge 1 commit intocmu-db:masterfrom
Chessing234:fix/issue-856-missing-cstdint

Conversation

@Chessing234
Copy link
Copy Markdown

Summary

  • Add #include <cstdint> to string_util.h which uses uint64_t in the FormatSize() declaration
  • On Fedora 43 (GCC 15), <cstdint> is no longer transitively included, causing a build failure

Fixes #856.

Test plan

  • Verified uint64_t is the only type from <cstdint> used in this header
  • Include is placed in alphabetical order with existing includes

Fixes cmu-db#856. On some platforms (e.g., Fedora 43 with recent GCC),
<cstdint> is not transitively included, causing a build failure
because uint64_t is not declared in string_util.h.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Chessing234 Chessing234 force-pushed the fix/issue-856-missing-cstdint branch from 3943b96 to 141c00a Compare April 6, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails on Fedora 43: 'uint64_t' not declared in string_util.h (missing <cstdint> include)

1 participant