aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h2
-rw-r--r--util-linux/fbset.c2
2 files changed, 3 insertions, 1 deletions
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 <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);