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
|
||||||
|
|
Loading…
Reference in new issue