diff options
Diffstat (limited to 'hwclock/cmos.c')
-rw-r--r-- | hwclock/cmos.c | 6 |
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); |