aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/hwclock.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 06c3d89b9..815b60b21 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -35,8 +35,21 @@
35 35
36 36
37/* Copied from linux/rtc.h to eliminate the kernel dependancy */ 37/* Copied from linux/rtc.h to eliminate the kernel dependancy */
38#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */ 38struct linux_rtc_time {
39#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */ 39 int tm_sec;
40 int tm_min;
41 int tm_hour;
42 int tm_mday;
43 int tm_mon;
44 int tm_year;
45 int tm_wday;
46 int tm_yday;
47 int tm_isdst;
48};
49
50
51#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
52#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
40 53
41 54
42#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS 55#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS