From a94a32442345b067eea137dd3068a9d525acd141 Mon Sep 17 00:00:00 2001 From: kojin Date: Sun, 3 Oct 2021 16:21:44 -0400 Subject: [PATCH] common: Don't use linux-specific OS description wxGetLinuxDistributionInfo is linux only --- common/Linux/LnxMisc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/Linux/LnxMisc.cpp b/common/Linux/LnxMisc.cpp index f95aafab03..15d504246f 100644 --- a/common/Linux/LnxMisc.cpp +++ b/common/Linux/LnxMisc.cpp @@ -53,7 +53,11 @@ u64 GetCPUTicks() wxString GetOSVersionString() { +#if defined(__linux__) return wxGetLinuxDistributionInfo().Description; +#else // freebsd + return wxGetOsDescription(); +#endif } void ScreensaverAllow(bool allow)