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 /utility.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 'utility.c')
-rw-r--r-- | utility.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -45,14 +45,14 @@ | |||
45 | #include <dirent.h> | 45 | #include <dirent.h> |
46 | #include <time.h> | 46 | #include <time.h> |
47 | #include <utime.h> | 47 | #include <utime.h> |
48 | #include <sys/stat.h> | ||
49 | #include <unistd.h> | 48 | #include <unistd.h> |
50 | #include <ctype.h> | 49 | #include <ctype.h> |
50 | #include <sys/stat.h> | ||
51 | #include <sys/ioctl.h> | ||
51 | #include <sys/utsname.h> /* for uname(2) */ | 52 | #include <sys/utsname.h> /* for uname(2) */ |
52 | 53 | ||
53 | #if defined BB_FEATURE_MOUNT_LOOP | 54 | #if defined BB_FEATURE_MOUNT_LOOP |
54 | #include <fcntl.h> | 55 | #include <fcntl.h> |
55 | #include <sys/ioctl.h> | ||
56 | #include <linux/loop.h> | 56 | #include <linux/loop.h> |
57 | #endif | 57 | #endif |
58 | 58 | ||
@@ -904,9 +904,10 @@ unsigned long my_getpwnamegid(char *name) | |||
904 | 904 | ||
905 | #if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) | 905 | #if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) |
906 | 906 | ||
907 | 907 | /* From <linux/kd.h> */ | |
908 | #include <linux/kd.h> | 908 | #define KDGKBTYPE 0x4B33 /* get keyboard type */ |
909 | #include <sys/ioctl.h> | 909 | #define KB_84 0x01 |
910 | #define KB_101 0x02 /* this is what we always answer */ | ||
910 | 911 | ||
911 | int is_a_console(int fd) | 912 | int is_a_console(int fd) |
912 | { | 913 | { |