blob: d1e87cd7c4d5accdaa36ef52d8af73bf102f2417 (
plain) (
tree)
|
|
From b66c3b217f1954e31ea6f40a2416dd3264861c66 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 21 Feb 2023 09:36:33 +0000
Subject: [PATCH] test: common: include <cstdlib> for abort() (fix build with
GCC 13)
GCC 13 (as usual for new compiler releases) shuffles around some
internal includes and so <cstdint> etc is no longer transitively included.
See https://www.gnu.org/software/gcc/gcc-13/porting_to.html.
Signed-off-by: Sam James <sam@gentoo.org>
---
test/common/utils_assert.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/common/utils_assert.h b/test/common/utils_assert.h
index 1df8ae72acc49fe38dac4d9bed4e9f4f26affcf5..0123ab881e124a800a5ebf8507050148038747d5 100644
--- a/test/common/utils_assert.h
+++ b/test/common/utils_assert.h
@@ -20,6 +20,8 @@
#include "config.h"
#include "utils_report.h"
+#include <cstdlib>
+
#define REPORT_FATAL_ERROR REPORT
namespace utils {
|