summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/hwclock-cmos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c
index de678ab9e..7f564e70e 100644
--- a/sys-utils/hwclock-cmos.c
+++ b/sys-utils/hwclock-cmos.c
@@ -79,9 +79,14 @@ int inb(int c __attribute__ ((__unused__)))
#endif /* __i386__ __x86_64__ */
#elif defined(__alpha__)
+# ifdef HAVE_SYS_IO_H
+# include <sys/io.h>
+# else
/* <asm/io.h> fails to compile, probably because of u8 etc */
extern unsigned int inb(unsigned long port);
extern void outb(unsigned char b, unsigned long port);
+extern int iopl(int level);
+# endif
#else
static void outb(int a __attribute__ ((__unused__)),
int b __attribute__ ((__unused__)))