summaryrefslogtreecommitdiff
path: root/chvt.c
diff options
context:
space:
mode:
authorEric Andersen2000-07-08 18:55:24 +0000
committerEric Andersen2000-07-08 18:55:24 +0000
commitbd22ed806782eec76929bcd2ec556717e79d24c7 (patch)
treee225367aaef198eacec8ed0b530d36a9d888d92f /chvt.c
parent877a71bbf0b8386add4631c08f7101259ad2dc07 (diff)
downloadbusybox-bd22ed806782eec76929bcd2ec556717e79d24c7.zip
busybox-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.gz
Update files to reduce dependance on kernel version...
-Erik
Diffstat (limited to 'chvt.c')
-rw-r--r--chvt.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/chvt.c b/chvt.c
index 45a0439..c5c86b6 100644
--- a/chvt.c
+++ b/chvt.c
@@ -5,12 +5,16 @@
* busyboxed by Erik Andersen
*/
#include "internal.h"
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <linux/vt.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+/* From <linux/vt.h> */
+#define VT_ACTIVATE 0x5606 /* make vt active */
+#define VT_WAITACTIVE 0x5607 /* wait for vt active */
+
int chvt_main(int argc, char **argv)
{