diff options
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 | { |