summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-12 20:00:56 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-12 20:00:56 +0200
commitd3ce4fa7931f1a69fb3f6bd759a864db09ebbdc2 (patch)
treee661c402ac11e86003500de8c905b127bcee9684
parent01d5f3ea4a9430c72498f4489a6c233957f609f1 (diff)
downloadtdebase-d3ce4fa7931f1a69fb3f6bd759a864db09ebbdc2.tar.gz
tdebase-d3ce4fa7931f1a69fb3f6bd759a864db09ebbdc2.zip
Fix FTBFS due to linux specific headers
-rw-r--r--kdesktop/lock/lockprocess.cc2
-rw-r--r--tdm/backend/ctrl.c2
-rw-r--r--tdm/backend/getfd.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index 773a0710a..ff820f0f4 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -79,7 +79,9 @@
#include <kcrash.h>
+#ifdef __Linux__
#include <linux/stat.h>
+#endif
#include <X11/Xlib.h>
#include <X11/Xutil.h>
diff --git a/tdm/backend/ctrl.c b/tdm/backend/ctrl.c
index 4e10309e6..9fc3f6b12 100644
--- a/tdm/backend/ctrl.c
+++ b/tdm/backend/ctrl.c
@@ -42,7 +42,9 @@ from the copyright holder.
#include <signal.h>
#include <pwd.h>
+#ifdef __Linux__
#include <linux/vt.h>
+#endif
#include "getfd.h"
static void
diff --git a/tdm/backend/getfd.c b/tdm/backend/getfd.c
index 3632161d3..07973e642 100644
--- a/tdm/backend/getfd.c
+++ b/tdm/backend/getfd.c
@@ -4,7 +4,9 @@
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
+#ifdef __Linux__
#include <linux/kd.h>
+#endif
#include "getfd.h"
/*