mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
24 lines
1.1 KiB
C++
24 lines
1.1 KiB
C++
From b5c12954802f733cbef5a83b1b2d07b8fde8a6b0 Mon Sep 17 00:00:00 2001
|
|
From: Bernard Spil <Sp1l@users.noreply.github.com>
|
|
Date: Sun, 19 Nov 2017 20:53:11 +0100
|
|
Subject: [PATCH] Unbreak build on FreeBSD
|
|
|
|
The function wxLinuxDistributionInfo is only available on Linux. Add check for LINUX symbol as per [documentation](http://docs.wxwidgets.org/3.0/group__group__funcmacro__networkuseros.html#ga06f6fb212c396bd20865ee4e2f69aa1f)
|
|
`This function is Linux-specific and is only available when the LINUX symbol is defined. `
|
|
---
|
|
src/ui/wxWidgets/wxutils.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ui/wxWidgets/wxutils.cpp b/src/ui/wxWidgets/wxutils.cpp
|
|
index 25faa5310..027ee69b4 100644
|
|
--- src/ui/wxWidgets/wxutils.cpp.orig
|
|
+++ src/ui/wxWidgets/wxutils.cpp
|
|
@@ -203,7 +203,7 @@ int pless(int* first, int* second) { return *first - *second; }
|
|
// on Fedora or Ubuntu
|
|
bool IsTaskBarIconAvailable()
|
|
{
|
|
-#ifdef __WXGTK__
|
|
+#if defined(__WXGTK__) && defined(LINUX)
|
|
const wxLinuxDistributionInfo ldi = wxGetLinuxDistributionInfo();
|
|
if (ldi.Id.IsEmpty() || ldi.Id == wxT("Ubuntu") || ldi.Id == wxT("Fedora"))
|
|
return false;
|