aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <griebl@gmx.de>2003-01-02 07:16:53 +0000
committerRobert Griebl <griebl@gmx.de>2003-01-02 07:16:53 +0000
commit7ce75f44ae8cfb419adca01593eb5b055ccc4b16 (patch)
tree06ebb56877db238d5241c12f17c033ff074ffa1c
parenta6685585d8710b4719f548382daa23597a96d078 (diff)
downloadbusybox-w32-7ce75f44ae8cfb419adca01593eb5b055ccc4b16.tar.gz
busybox-w32-7ce75f44ae8cfb419adca01593eb5b055ccc4b16.tar.bz2
busybox-w32-7ce75f44ae8cfb419adca01593eb5b055ccc4b16.zip
> Eliminate dependancy on kernel header files. Naughty naughty.
> Using linux kernel headers is a Bad Thing(tm) and should be > punished. > -Erik Doing this wrong should be punished even harder :) - Robert
-rw-r--r--util-linux/hwclock.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 06c3d89b9..815b60b21 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -35,8 +35,21 @@
35 35
36 36
37/* Copied from linux/rtc.h to eliminate the kernel dependancy */ 37/* Copied from linux/rtc.h to eliminate the kernel dependancy */
38#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */ 38struct linux_rtc_time {
39#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */ 39 int tm_sec;
40 int tm_min;
41 int tm_hour;
42 int tm_mday;
43 int tm_mon;
44 int tm_year;
45 int tm_wday;
46 int tm_yday;
47 int tm_isdst;
48};
49
50
51#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
52#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
40 53
41 54
42#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS 55#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS