diff options
author | Eric Andersen | 2003-11-14 03:11:29 +0000 |
---|---|---|
committer | Eric Andersen | 2003-11-14 03:11:29 +0000 |
commit | 5f28455c6efe9c86d96d216a5bdc7f6db3e85780 (patch) | |
tree | 0f75de41886affd1c3fbff8db2a53b6f5a5a8faf | |
parent | b6e58d2b9a02dfcf313e064408aea1359a4d9763 (diff) | |
download | busybox-5f28455c6efe9c86d96d216a5bdc7f6db3e85780.zip busybox-5f28455c6efe9c86d96d216a5bdc7f6db3e85780.tar.gz |
Oskar Liljeblad writes:
Here's a fix for the hard-coded device name in fbset.
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | util-linux/fbset.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 21ea316..f1f4f5c 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 f66ebe5..b5f57b1 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -35,7 +35,7 @@ #include <sys/ioctl.h> #include "busybox.h" -#define DEFAULTFBDEV "/dev/fb0" +#define DEFAULTFBDEV FB_0 #define DEFAULTFBMODE "/etc/fb.modes" static const int OPT_CHANGE = (1 << 0); |