summaryrefslogtreecommitdiffstats
path: root/hwclock/cmos.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:22 +0100
committerKarel Zak2006-12-07 00:26:22 +0100
commit0b0bb92085fc7a7e7d2afe984e43161a2f4ec140 (patch)
treee560f6b005f0e83713e8259f2f12806dd8d39ec6 /hwclock/cmos.c
parentImported from util-linux-2.12h tarball. (diff)
downloadkernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.gz
kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.xz
kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.zip
Imported from util-linux-2.12i tarball.
Diffstat (limited to 'hwclock/cmos.c')
-rw-r--r--hwclock/cmos.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hwclock/cmos.c b/hwclock/cmos.c
index a5eec0372..8d497b27e 100644
--- a/hwclock/cmos.c
+++ b/hwclock/cmos.c
@@ -46,11 +46,15 @@
#include <unistd.h> /* for geteuid() */
#include <fcntl.h> /* for O_RDWR */
-
+#include "../defines.h" /* for HAVE_sys_io_h */
#include "nls.h"
#if defined(__i386__)
+#ifdef HAVE_sys_io_h
+#include <sys/io.h>
+#else
#include <asm/io.h> /* for inb, outb */
+#endif
#elif defined(__alpha__)
/* <asm/io.h> fails to compile, probably because of u8 etc */
extern unsigned int inb(unsigned long port);