diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-16 12:59:09 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-16 12:59:09 +0200 |
commit | c9929a4e0eab5eb94aebe7f91a91f37239d1bc6c (patch) | |
tree | b6b3b0710d183fd34503a2fd0e6205df0ac1e4e7 /fbtools.c | |
parent | 2d62ce153a386d8c67dfd0d965d746a754ef4129 (diff) | |
download | fbida-c9929a4e0eab5eb94aebe7f91a91f37239d1bc6c.tar.gz |
add device_open()
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,6 +24,7 @@ #include "vt.h" #include "fbtools.h" +#include "logind.h" /* -------------------------------------------------------------------- */ /* internal variables */ @@ -225,7 +226,7 @@ gfxstate* fb_init(const char *device, char *mode) fprintf(stderr, "trying fbdev: %s ...\n", device); /* get current settings (which we have to restore) */ - if (-1 == (fb = open(device,O_RDWR | O_CLOEXEC))) { + if (-1 == (fb = device_open(device))) { fprintf(stderr,"open %s: %s\n",device,strerror(errno)); exit(1); } |