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 #include #include -#include #include #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