diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-08 13:22:33 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-08 13:22:33 +0200 |
commit | 8fc776833f83c417d57c43f41479bc034c3863c6 (patch) | |
tree | 2fbe3cd51de3947f8fc5144d17b2bd57eccb6271 /fbtools.c | |
parent | 63b5412f8c410694e8c67452452273ae8a9a6871 (diff) | |
download | fbida-8fc776833f83c417d57c43f41479bc034c3863c6.tar.gz |
portability fixes, some modernization
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 |