[BusyBox-cvs] busybox/util-linux hwclock.c,1.2,1.3

Erik Andersen andersen at codepoet.org
Wed Dec 11 03:41:31 UTC 2002


Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv9419/util-linux

Modified Files:
	hwclock.c 
Log Message:
Eliminate dependancy on kernel header files.  Naughty naughty.
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
 -Erik


Index: hwclock.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/hwclock.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- hwclock.c	5 Aug 2002 02:57:12 -0000	1.2
+++ hwclock.c	11 Dec 2002 03:41:28 -0000	1.3
@@ -30,9 +30,14 @@
 #include <fcntl.h>
 #include <sys/time.h>
 #include <time.h>
-#include <linux/rtc.h>
 #include <sys/ioctl.h>
 #include "busybox.h"
+
+
+/* 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   */
+
 
 #ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS
 # ifndef _GNU_SOURCE




More information about the busybox-cvs mailing list