one gcc6 FTBFS fix

epel9
Rex Dieter 9 years ago
parent ecc09847a3
commit d9856d6228

@ -0,0 +1,30 @@
From 3a3bbc39d5cba8d77c89f6652c5b9c24c9980497 Mon Sep 17 00:00:00 2001
From: Armin K <krejzi@email.com>
Date: Sun, 13 Mar 2016 21:11:44 +0100
Subject: [PATCH] Fix building on Linux with clang/libc++
When using libc++, cmath isn't being pulled in,
resulting in
error: no member named 'sqrt' in namespace 'std'
Adding explicit include fixes it
---
kcms/touchpad/src/backends/x11/synapticstouchpad.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/kcms/touchpad/src/backends/x11/synapticstouchpad.cpp b/kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
index d4742bf..eb222ae 100644
--- a/kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
+++ b/kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
@@ -46,6 +46,7 @@
* Peter Osterlund (petero2@telia.com)
*/
+#include <cmath>
#include <QDebug>
#include "synapticstouchpad.h"
--
2.7.3

@ -29,7 +29,8 @@ Patch102: plasma-desktop-fedora_layout.patch
## upstream patches ## upstream patches
## upstream patches ## upstream patches (master branch)
Patch21: 0001-Fix-building-on-Linux-with-clang-libc.patch
## upstreamable patches ## upstreamable patches
# missing '#include <config-workspace.h>' means PK never used # missing '#include <config-workspace.h>' means PK never used
@ -165,6 +166,7 @@ BuildArch: noarch
%prep %prep
%setup -q %setup -q
%patch21 -p1 -b .0001
%patch50 -p1 -b .PackageKit %patch50 -p1 -b .PackageKit
%if 0%{?fedora} > 22 %if 0%{?fedora} > 22

Loading…
Cancel
Save