Eliminate dependancy on kernel header files. Naughty naughty.
authorEric Andersen <andersen@codepoet.org>
Wed, 11 Dec 2002 03:41:28 +0000 (03:41 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 11 Dec 2002 03:41:28 +0000 (03:41 -0000)
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
 -Erik

util-linux/hwclock.c

index 412995cb17b43acad8d611d0d12798d0705fec48..06c3d89b919896ade6a8d860ca80ca5ede7f8d53 100644 (file)
 #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
 #  define _GNU_SOURCE