summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl2003-01-02 07:16:53 +0000
committerRobert Griebl2003-01-02 07:16:53 +0000
commit7ce75f44ae8cfb419adca01593eb5b055ccc4b16 (patch)
tree06ebb56877db238d5241c12f17c033ff074ffa1c
parenta6685585d8710b4719f548382daa23597a96d078 (diff)
downloadbusybox-7ce75f44ae8cfb419adca01593eb5b055ccc4b16.zip
busybox-7ce75f44ae8cfb419adca01593eb5b055ccc4b16.tar.gz
> 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 06c3d89..815b60b 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -35,8 +35,21 @@
/* Copied from linux/rtc.h to eliminate the kernel dependancy */
-#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */
-#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */
+struct linux_rtc_time {
+ int tm_sec;
+ int tm_min;
+ int tm_hour;
+ int tm_mday;
+ int tm_mon;
+ int tm_year;
+ int tm_wday;
+ int tm_yday;
+ int tm_isdst;
+};
+
+
+#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
+#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS