summaryrefslogtreecommitdiff
path: root/debian/patches/0002-Recognize-Hurd-platform.patch
blob: c19213d6ac5007b43aaee75f209ea5e7c96ef54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From b00b0c864574c3842effe1705b66066fa228f950 Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <robotux@celest.fr>
Date: Fri, 16 Feb 2018 23:09:42 +0000
Subject: Recognize Hurd platform

Building ultracopier on Hurd fails because PluginsManager.cpp checks for
various supported host platform (Linux, Mac OS X, Windows) and default
to giving an error. Given the code guarded by the Linux check, Hurd
should work as well. This patch thus changes the guard for that code to
also support Hurd.

Author: Thomas Preud'homme <robotux@debian.org>
Forwarded: no
Last-Update: 2018-02-24
---
 PluginsManager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PluginsManager.cpp b/PluginsManager.cpp
index 95c158d..269e837 100644
--- a/PluginsManager.cpp
+++ b/PluginsManager.cpp
@@ -907,7 +907,7 @@ void PluginsManager::newAuthPath(const std::string &path)
 /// \brief transfor short plugin name into file name
 std::string PluginsManager::getResolvedPluginName(const std::string &name)
 {
-    #if defined(Q_OS_LINUX)
+    #if defined(Q_OS_LINUX) || defined(Q_OS_HURD)
         return "lib"+name+".so";
     #elif defined(Q_OS_MAC)
         #if defined(QT_DEBUG)