aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-08 18:55:24 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-08 18:55:24 +0000
commite4d63164fd2e82ba6899cc37acd02537fc49241d (patch)
treee225367aaef198eacec8ed0b530d36a9d888d92f /utility.c
parent0022fe5638fbe702405ad218f43006e718f4ef9e (diff)
downloadbusybox-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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/utility.c b/utility.c
index e1e0f71a5..271b101ec 100644
--- a/utility.c
+++ b/utility.c
@@ -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
911int is_a_console(int fd) 912int is_a_console(int fd)
912{ 913{