From b337fc9dd497d915c745634226b6ab9be3848fe2 Mon Sep 17 00:00:00 2001 From: Miroslav Pavleski Date: Fri, 14 Nov 2025 09:18:38 +0100 Subject: [PATCH] Fix missing stdint.h header breaking build on GCC 15 --- src/common/ObjectParser.cc | 1 + src/magics.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/ObjectParser.cc b/src/common/ObjectParser.cc index a67a1854..4827f0bb 100644 --- a/src/common/ObjectParser.cc +++ b/src/common/ObjectParser.cc @@ -19,6 +19,7 @@ #include "ObjectParser.h" #include "Translator.h" #include "Value.h" +#include namespace magics { diff --git a/src/magics.h b/src/magics.h index ac9ef188..652eb964 100644 --- a/src/magics.h +++ b/src/magics.h @@ -95,6 +95,7 @@ #include #include #include +#include using std::cerr; using std::cout; @@ -376,9 +377,9 @@ inline MAGICS_NO_EXPORT string buildSharePath(const string& config, const string found = libpath.find_last_of("/\\"); magplushome = libpath.substr(0,found); } - else + else #endif - magplushome = string(MAGICS_INSTALL_PATH); + magplushome = string(MAGICS_INSTALL_PATH); } ostringstream out; out << magplushome << "/share/magics/" << config;