summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdecore/tdehardwaredevices.cpp2
-rw-r--r--tdecore/tdehardwaredevices.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp
index 73c3a0703..f66d7f678 100644
--- a/tdecore/tdehardwaredevices.cpp
+++ b/tdecore/tdehardwaredevices.cpp
@@ -33,7 +33,9 @@
#include <tdeapplication.h>
#include <dcopclient.h>
+extern "C" {
#include <libudev.h>
+}
#include <fcntl.h>
#include <poll.h>
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h
index fcf60533d..e7a7a3e26 100644
--- a/tdecore/tdehardwaredevices.h
+++ b/tdecore/tdehardwaredevices.h
@@ -27,7 +27,9 @@
#include "tdelibs_export.h"
// udev includes
+extern "C" {
#include <libudev.h>
+}
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>