diff options
author | Eric Andersen | 2000-07-08 18:55:24 +0000 |
---|---|---|
committer | Eric Andersen | 2000-07-08 18:55:24 +0000 |
commit | bd22ed806782eec76929bcd2ec556717e79d24c7 (patch) | |
tree | e225367aaef198eacec8ed0b530d36a9d888d92f /utility.c | |
parent | 877a71bbf0b8386add4631c08f7101259ad2dc07 (diff) | |
download | busybox-bd22ed806782eec76929bcd2ec556717e79d24c7.zip busybox-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.gz |
Update files to reduce dependance on kernel version...
-Erik
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -45,14 +45,14 @@ #include <dirent.h> #include <time.h> #include <utime.h> -#include <sys/stat.h> #include <unistd.h> #include <ctype.h> +#include <sys/stat.h> +#include <sys/ioctl.h> #include <sys/utsname.h> /* for uname(2) */ #if defined BB_FEATURE_MOUNT_LOOP #include <fcntl.h> -#include <sys/ioctl.h> #include <linux/loop.h> #endif @@ -904,9 +904,10 @@ unsigned long my_getpwnamegid(char *name) #if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) - -#include <linux/kd.h> -#include <sys/ioctl.h> +/* From <linux/kd.h> */ +#define KDGKBTYPE 0x4B33 /* get keyboard type */ +#define KB_84 0x01 +#define KB_101 0x02 /* this is what we always answer */ int is_a_console(int fd) { |