diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 18:55:24 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 18:55:24 +0000 |
commit | e4d63164fd2e82ba6899cc37acd02537fc49241d (patch) | |
tree | e225367aaef198eacec8ed0b530d36a9d888d92f /utility.c | |
parent | 0022fe5638fbe702405ad218f43006e718f4ef9e (diff) | |
download | busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.tar.gz busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.tar.bz2 busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.zip |
Update files to reduce dependance on kernel version...
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@779 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-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 | { |