summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-08-12 22:29:18 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-12 22:29:18 +0200
commit4a6abc0208f2c4c4d042f4256818eb9f1d820e6b (patch)
tree8d276b163f2cb54b347deb616a69abb3a9436b0f
parent98240b3faa62a76367c3fe861f586fc2cbd5afbe (diff)
downloadtdelibs-4a6abc0208f2c4c4d042f4256818eb9f1d820e6b.tar.gz
tdelibs-4a6abc0208f2c4c4d042f4256818eb9f1d820e6b.zip
Fix FTBFS on libudev includes
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp2
-rw-r--r--tdecore/tdehw/tdehardwaredevices.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 00d0d51df..8be26e3c7 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -33,7 +33,9 @@
#include <tdeapplication.h>
#include <dcopclient.h>
+extern "C" {
#include <libudev.h>
+}
#include <stdlib.h>
#include <unistd.h>
diff --git a/tdecore/tdehw/tdehardwaredevices.h b/tdecore/tdehw/tdehardwaredevices.h
index c9f56d96b..210f72d63 100644
--- a/tdecore/tdehw/tdehardwaredevices.h
+++ b/tdecore/tdehw/tdehardwaredevices.h
@@ -34,7 +34,9 @@
// FIXME delete those headers after complete fixing everything in over modules
#include "tdegenericdevice.h"
#include "kiconloader.h"
+extern "C" {
#include <libudev.h>
+}
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>