aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-04-16 12:59:09 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-04-16 12:59:09 +0200
commitc9929a4e0eab5eb94aebe7f91a91f37239d1bc6c (patch)
treeb6b3b0710d183fd34503a2fd0e6205df0ac1e4e7 /fbtools.c
parent2d62ce153a386d8c67dfd0d965d746a754ef4129 (diff)
downloadfbida-c9929a4e0eab5eb94aebe7f91a91f37239d1bc6c.tar.gz
add device_open()
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fbtools.c b/fbtools.c
index 3158d2e..6c2d52b 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -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);
}