From: Matt Kraai Date: Sat, 28 Oct 2000 16:56:32 +0000 (-0000) Subject: Make fbset compile with the readmode feature by pulling defs from fb.h. X-Git-Tag: 0_48~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=269e07cadc513bcfdd9804c8abb4c177e589a9d8;p=oweals%2Fbusybox.git Make fbset compile with the readmode feature by pulling defs from fb.h. --- 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 { 0, 0, 0} }; +#ifdef BB_FEATURE_FBSET_READMODE +/* taken from linux/fb.h */ +#define FB_VMODE_INTERLACED 1 /* interlaced */ +#define FB_VMODE_DOUBLE 2 /* double scan */ +#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ +#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ +#define FB_SYNC_EXT 4 /* external sync */ +#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ +#endif static int readmode(struct fb_var_screeninfo *base, const char *fn, const char *mode) { 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 { 0, 0, 0} }; +#ifdef BB_FEATURE_FBSET_READMODE +/* taken from linux/fb.h */ +#define FB_VMODE_INTERLACED 1 /* interlaced */ +#define FB_VMODE_DOUBLE 2 /* double scan */ +#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ +#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ +#define FB_SYNC_EXT 4 /* external sync */ +#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ +#endif static int readmode(struct fb_var_screeninfo *base, const char *fn, const char *mode) {