summaryrefslogtreecommitdiffstats
path: root/hwclock/cmos.c
diff options
context:
space:
mode:
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 94153dea0..aed122cb1 100644
--- a/hwclock/cmos.c
+++ b/hwclock/cmos.c
@@ -49,8 +49,12 @@
#include "nls.h"
-#if defined(__i386__) || defined(__alpha__)
+#if defined(__i386__)
#include <asm/io.h> /* for inb, outb */
+#elif defined(__alpha__)
+/* <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);
#else
void outb(int a, int b){}
int inb(int c){ return 0; }