summaryrefslogtreecommitdiff
path: root/hw/kdrive/linux
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-02-10 07:52:05 +0000
committerEric Anholt <anholt@freebsd.org>2006-02-10 07:52:05 +0000
commitefc3fab7f4b29f56fffd21304c64c03a48aa5b4b (patch)
treed409131a93d0f7e9742fb48d88755ca5b510be01 /hw/kdrive/linux
parentfa3a65e33d8c893c7867ea507afc7caa1361aa9c (diff)
Make kdrive (i.e. Xephyr only) buildable on FreeBSD and probably other OSes
without linux VT switching, fbdev, and vm86 support.
Diffstat (limited to 'hw/kdrive/linux')
-rw-r--r--hw/kdrive/linux/Makefile.am11
-rw-r--r--hw/kdrive/linux/agp.c1
2 files changed, 9 insertions, 3 deletions
diff --git a/hw/kdrive/linux/Makefile.am b/hw/kdrive/linux/Makefile.am
index cf3183b8f..4243a1124 100644
--- a/hw/kdrive/linux/Makefile.am
+++ b/hw/kdrive/linux/Makefile.am
@@ -13,17 +13,22 @@ if H3600_TS
TS_C = ts.c
endif
+if KDRIVE_HW
+KDRIVE_HW_SOURCES = \
+ evdev.c \
+ keyboard.c \
+ linux.c
+endif
+
liblinux_a_SOURCES = \
agp.c \
agp.h \
bus.c \
- keyboard.c \
klinux.h \
- linux.c \
mouse.c \
- evdev.c \
ms.c \
ps2.c \
+ $(KDRIVE_HW_SOURCES) \
$(TSLIB_C) \
$(TS_C)
diff --git a/hw/kdrive/linux/agp.c b/hw/kdrive/linux/agp.c
index a874c7d4b..c2ae62568 100644
--- a/hw/kdrive/linux/agp.c
+++ b/hw/kdrive/linux/agp.c
@@ -45,6 +45,7 @@ of the copyright holder.
#include <kdrive-config.h>
#endif
#include <X11/X.h>
+#include "misc.h"
#include <unistd.h>
#include <sys/types.h>