aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/fbtools.c b/fbtools.c
index a459585..a27ffbf 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -18,14 +18,16 @@
#include <sys/wait.h>
#include <sys/stat.h>
-#include <linux/kd.h>
-#include <linux/vt.h>
-#include <linux/fb.h>
-
#include "vt.h"
#include "fbtools.h"
#include "logind.h"
+#ifdef SYSTEM_LINUX
+
+#include <linux/kd.h>
+#include <linux/vt.h>
+#include <linux/fb.h>
+
/* -------------------------------------------------------------------- */
/* internal variables */
@@ -330,3 +332,11 @@ gfxstate* fb_init(const char *device, char *mode)
fb_cleanup_display();
exit(1);
}
+
+#else /* SYSTEM_LINUX */
+
+gfxstate* fb_init(const char *device, char *mode)
+{
+ return NULL;
+}
+#endif