aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-12-11 03:41:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-12-11 03:41:28 +0000
commit8882ea53d5c0349e5570c5044e7f1a34a2ee6e5f (patch)
treeeecef47e79b5d8d9903e4e475efbaca235abff9a /util-linux
parent39438c7c17fcd1b4599451096b659e6bfb1df841 (diff)
downloadbusybox-8882ea53d5c0349e5570c5044e7f1a34a2ee6e5f.tar.gz
Eliminate dependancy on kernel header files. Naughty naughty.
Using linux kernel headers is a Bad Thing(tm) and should be punished. -Erik
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/hwclock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 412995cb1..06c3d89b9 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -30,10 +30,15 @@
#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