diff mbox series

[bug#65547] daemon: Fix build with GCC13

Message ID 20230826070036.7629-2-soeren@soeren-tempel.net
State New
Headers show
Series [bug#65547] daemon: Fix build with GCC13 | expand

Commit Message

Sören Tempel Aug. 26, 2023, 7 a.m. UTC
From: Sören Tempel <soeren@soeren-tempel.net>

The sqlite.hh file uses fixed-width integer types from stdint.h. As
such, it needs to include <cstdint>. Without this include, the file
doesn't compile successfully with GCC13.

See: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

* nix/libstore/sqlite.hh: include <cstdint>

Signed-off-by: Sören Tempel <soeren@soeren-tempel.net>
---
 nix/libstore/sqlite.hh | 1 +
 1 file changed, 1 insertion(+)

Comments

Ludovic Courtès Sept. 9, 2023, 8:31 p.m. UTC | #1
Hi,

soeren@soeren-tempel.net skribis:

> From: Sören Tempel <soeren@soeren-tempel.net>
>
> The sqlite.hh file uses fixed-width integer types from stdint.h. As
> such, it needs to include <cstdint>. Without this include, the file
> doesn't compile successfully with GCC13.
>
> See: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
>
> * nix/libstore/sqlite.hh: include <cstdint>
>
> Signed-off-by: Sören Tempel <soeren@soeren-tempel.net>

Pushed as cd469932758bf2bec1ff9c82aeb373e18730d0c4, thanks!

Ludo’.
diff mbox series

Patch

diff --git a/nix/libstore/sqlite.hh b/nix/libstore/sqlite.hh
index 326e4a4855..6cadba6849 100644
--- a/nix/libstore/sqlite.hh
+++ b/nix/libstore/sqlite.hh
@@ -2,6 +2,7 @@ 
 
 #include <functional>
 #include <string>
+#include <cstdint>
 
 #include "types.hh"