diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-08 18:55:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-08 18:55:24 +0000 |
commit | bd22ed806782eec76929bcd2ec556717e79d24c7 (patch) | |
tree | e225367aaef198eacec8ed0b530d36a9d888d92f /console-tools/chvt.c | |
parent | 877a71bbf0b8386add4631c08f7101259ad2dc07 (diff) | |
download | busybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.gz busybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.bz2 busybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.zip |
Update files to reduce dependance on kernel version...
-Erik
Diffstat (limited to 'console-tools/chvt.c')
-rw-r--r-- | console-tools/chvt.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 45a04397a..c5c86b613 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -5,12 +5,16 @@ | |||
5 | * busyboxed by Erik Andersen | 5 | * busyboxed by Erik Andersen |
6 | */ | 6 | */ |
7 | #include "internal.h" | 7 | #include "internal.h" |
8 | #include <sys/types.h> | ||
9 | #include <sys/ioctl.h> | ||
10 | #include <linux/vt.h> | ||
11 | #include <stdio.h> | 8 | #include <stdio.h> |
12 | #include <stdlib.h> | 9 | #include <stdlib.h> |
13 | #include <fcntl.h> | 10 | #include <fcntl.h> |
11 | #include <sys/types.h> | ||
12 | #include <sys/ioctl.h> | ||
13 | |||
14 | /* From <linux/vt.h> */ | ||
15 | #define VT_ACTIVATE 0x5606 /* make vt active */ | ||
16 | #define VT_WAITACTIVE 0x5607 /* wait for vt active */ | ||
17 | |||
14 | 18 | ||
15 | int chvt_main(int argc, char **argv) | 19 | int chvt_main(int argc, char **argv) |
16 | { | 20 | { |