aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-10-28 16:56:32 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-10-28 16:56:32 +0000
commita14db5d12a19a6af8466fb8cf0cf505c65cae589 (patch)
treec6f80f311496c7d27fd46ad4cdaca5042e3d484c
parentf5d1005517a4c6d2fcf2fa305428ae624ace4e1b (diff)
downloadbusybox-w32-a14db5d12a19a6af8466fb8cf0cf505c65cae589.tar.gz
busybox-w32-a14db5d12a19a6af8466fb8cf0cf505c65cae589.tar.bz2
busybox-w32-a14db5d12a19a6af8466fb8cf0cf505c65cae589.zip
Make fbset compile with the readmode feature by pulling defs from fb.h.
git-svn-id: svn://busybox.net/trunk/busybox@1266 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--fbset.c9
-rw-r--r--util-linux/fbset.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/fbset.c b/fbset.c
index 32325a7cf..8307f262d 100644
--- a/fbset.c
+++ b/fbset.c
@@ -180,6 +180,15 @@ struct cmdoptions_t {
180 0, 0, 0} 180 0, 0, 0}
181}; 181};
182 182
183#ifdef BB_FEATURE_FBSET_READMODE
184/* taken from linux/fb.h */
185#define FB_VMODE_INTERLACED 1 /* interlaced */
186#define FB_VMODE_DOUBLE 2 /* double scan */
187#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */
188#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */
189#define FB_SYNC_EXT 4 /* external sync */
190#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */
191#endif
183static int readmode(struct fb_var_screeninfo *base, const char *fn, 192static int readmode(struct fb_var_screeninfo *base, const char *fn,
184 const char *mode) 193 const char *mode)
185{ 194{
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 32325a7cf..8307f262d 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -180,6 +180,15 @@ struct cmdoptions_t {
180 0, 0, 0} 180 0, 0, 0}
181}; 181};
182 182
183#ifdef BB_FEATURE_FBSET_READMODE
184/* taken from linux/fb.h */
185#define FB_VMODE_INTERLACED 1 /* interlaced */
186#define FB_VMODE_DOUBLE 2 /* double scan */
187#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */
188#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */
189#define FB_SYNC_EXT 4 /* external sync */
190#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */
191#endif
183static int readmode(struct fb_var_screeninfo *base, const char *fn, 192static int readmode(struct fb_var_screeninfo *base, const char *fn,
184 const char *mode) 193 const char *mode)
185{ 194{