summaryrefslogtreecommitdiffstats
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r--hwclock/rtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index cbb2dddea..a2aa0b825 100644
--- a/hwclock/rtc.c
+++ b/hwclock/rtc.c
@@ -1,6 +1,7 @@
/* rtc.c - Use /dev/rtc for clock access */
#include <unistd.h> /* for close() */
#include <fcntl.h> /* for O_RDONLY */
+#include <errno.h>
#include <sysexits.h>
#include <sys/ioctl.h>
#include <sys/time.h> /* for struct timeval */