From 14e752035c145d4ab23419c3dc629c9b6aefc10c Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Wed, 2 Sep 2026 08:18:58 -0700 Subject: [PATCH] Fix a missing cstdlib and the unsupported-platform throw. sharedmem-unix.cc calls calloc without including it. version.cc's unsupported-platform fallback throws std::runtime_exception, which is not a type. Nothing had ever preprocessed that block in, so it tripped as a compile error the first time a new target reached it rather than at runtime. Signed-off-by: Nicolas 'Pixel' Noble --- src/support/sharedmem-unix.cc | 2 ++ src/support/version.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support/sharedmem-unix.cc b/src/support/sharedmem-unix.cc index c35541b1..dad6b2aa 100644 --- a/src/support/sharedmem-unix.cc +++ b/src/support/sharedmem-unix.cc @@ -26,6 +26,8 @@ SOFTWARE. #if !defined(_WIN32) && !defined(_WIN64) +#include + #include #include #include diff --git a/src/support/version.cc b/src/support/version.cc index ecaca978..5ca00299 100644 --- a/src/support/version.cc +++ b/src/support/version.cc @@ -267,7 +267,7 @@ bool PCSX::Update::getDownloadUrl(const VersionInfo& versionInfo, std::function< // All these defines need to be matching what we see in version-{platform}.cc #if (!defined(__APPLE__) || !defined(__MACH__)) && !defined(__linux__) && !defined(_WIN32) && !defined(_WIN64) bool PCSX::Update::applyUpdate(const std::filesystem::path& binDir) { - throw std::runtime_exception("No platform support for updates"); + throw std::runtime_error("No platform support for updates"); return false; } #endif