From 028a80e4a8428276a8496e8aad3bae5caade2b47 Mon Sep 17 00:00:00 2001 From: Gary Palmer Date: Thu, 24 Sep 1998 01:36:36 +0000 Subject: [PATCH] Don't assume that we have extended modes on all platforms. --- usr.sbin/vidcontrol/vidcontrol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index 1d8d4b24db02..1553c3460634 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "$Id: vidcontrol.c,v 1.21 1998/09/16 13:55:26 abial Exp $"; + "$Id: vidcontrol.c,v 1.22 1998/09/23 10:00:15 yokota Exp $"; #endif /* not lint */ #include @@ -262,6 +262,7 @@ video_mode(int argc, char **argv, int *index) char *name; unsigned long mode; } modes[] = { +#ifdef SW_TEXT_80x25 { "80x25", SW_TEXT_80x25 }, { "80x30", SW_TEXT_80x30 }, { "80x43", SW_TEXT_80x43 }, @@ -272,6 +273,7 @@ video_mode(int argc, char **argv, int *index) { "132x43", SW_TEXT_132x43 }, { "132x50", SW_TEXT_132x50 }, { "132x60", SW_TEXT_132x60 }, +#endif { "VGA_40x25", SW_VGA_C40x25 }, { "VGA_80x25", SW_VGA_C80x25 }, { "VGA_80x30", SW_VGA_C80x30 },