root/root-add-missing-include-cstdint.patch
2023-01-21 08:32:07 +01:00

38 lines
1.2 KiB
Diff

From cf6a925dfda2411b979da368e4cea769dbe6238a Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Fri, 20 Jan 2023 06:34:11 +0100
Subject: [PATCH] Add missing #include <cstdint>
Fixes compilation error with gcc 13
---
tree/ntuple/v7/inc/ROOT/RDaos.hxx | 1 +
tree/ntuple/v7/test/CustomStruct.hxx | 1 +
2 files changed, 2 insertions(+)
diff --git a/tree/ntuple/v7/inc/ROOT/RDaos.hxx b/tree/ntuple/v7/inc/ROOT/RDaos.hxx
index 69ee9ba99d..6367dfa93f 100644
--- a/tree/ntuple/v7/inc/ROOT/RDaos.hxx
+++ b/tree/ntuple/v7/inc/ROOT/RDaos.hxx
@@ -22,6 +22,7 @@
// Also, this header file is known to provide macros that conflict with std::min()/std::max().
extern "C" void d_rank_list_free(d_rank_list_t *rank_list);
+#include <cstdint>
#include <functional>
#include <memory>
#include <string>
diff --git a/tree/ntuple/v7/test/CustomStruct.hxx b/tree/ntuple/v7/test/CustomStruct.hxx
index a975b5ce5d..be08eba924 100644
--- a/tree/ntuple/v7/test/CustomStruct.hxx
+++ b/tree/ntuple/v7/test/CustomStruct.hxx
@@ -1,6 +1,7 @@
#ifndef ROOT7_RNTuple_Test_CustomStruct
#define ROOT7_RNTuple_Test_CustomStruct
+#include <cstdint>
#include <string>
#include <vector>
--
2.39.0