aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-05-08 13:22:33 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-05-08 13:22:33 +0200
commit8fc776833f83c417d57c43f41479bc034c3863c6 (patch)
tree2fbe3cd51de3947f8fc5144d17b2bd57eccb6271 /fbtools.c
parent63b5412f8c410694e8c67452452273ae8a9a6871 (diff)
downloadfbida-8fc776833f83c417d57c43f41479bc034c3863c6.tar.gz
portability fixes, some modernization
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