From 5f28455c6efe9c86d96d216a5bdc7f6db3e85780 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 14 Nov 2003 03:11:29 +0000 Subject: [PATCH] Oskar Liljeblad writes: Here's a fix for the hard-coded device name in fbset. --- include/libbb.h | 2 ++ util-linux/fbset.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/libbb.h b/include/libbb.h index 21ea31690..f1f4f5c0a 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -376,6 +376,7 @@ extern int bb_default_error_retval; #endif # define VC_FORMAT "/dev/vc/%d" # define LOOP_FORMAT "/dev/loop/%d" +# define FB_0 "/dev/fb/0" #else # define CURRENT_VC "/dev/tty0" # define VC_1 "/dev/tty1" @@ -394,6 +395,7 @@ extern int bb_default_error_retval; #endif # define VC_FORMAT "/dev/tty%d" # define LOOP_FORMAT "/dev/loop%d" +# define FB_0 "/dev/fb0" #endif //#warning put these in .o files diff --git a/util-linux/fbset.c b/util-linux/fbset.c index f66ebe546..b5f57b1e4 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -35,7 +35,7 @@ #include #include "busybox.h" -#define DEFAULTFBDEV "/dev/fb0" +#define DEFAULTFBDEV FB_0 #define DEFAULTFBMODE "/etc/fb.modes" static const int OPT_CHANGE = (1 << 0); -- 2.25.1