You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plasma-desktop/0001-Fix-building-on-Linux-...

31 lines
863 B

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