aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
30#include <fcntl.h> 30#include <fcntl.h>
31#include <sys/time.h> 31#include <sys/time.h>
32#include <time.h> 32#include <time.h>
33#include <linux/rtc.h>
34#include <sys/ioctl.h> 33#include <sys/ioctl.h>
35#include "busybox.h" 34#include "busybox.h"
36 35
36
37/* Copied from linux/rtc.h to eliminate the kernel dependancy */
38#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */
39#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */
40
41
37#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS 42#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS
38# ifndef _GNU_SOURCE 43# ifndef _GNU_SOURCE
39# define _GNU_SOURCE 44# define _GNU_SOURCE