summaryrefslogtreecommitdiffstats
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r--hwclock/rtc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index 21c7d746d..a76b95c65 100644
--- a/hwclock/rtc.c
+++ b/hwclock/rtc.c
@@ -1,12 +1,17 @@
/*
* rtc.c - Use /dev/rtc for clock access
*/
-#include <unistd.h> /* for close() */
-#include <fcntl.h> /* for O_RDONLY */
+#include <asm/ioctl.h>
#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <sysexits.h>
#include <sys/ioctl.h>
-#include <sys/time.h> /* for struct timeval */
+#include <sys/select.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
#include "clock.h"
#include "nls.h"