summaryrefslogtreecommitdiffstats
path: root/libdha
diff options
context:
space:
mode:
Diffstat (limited to 'libdha')
-rw-r--r--libdha/sysdep/AsmMacros_powerpc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdha/sysdep/AsmMacros_powerpc.h b/libdha/sysdep/AsmMacros_powerpc.h
index b17daddbdf..548a7c9414 100644
--- a/libdha/sysdep/AsmMacros_powerpc.h
+++ b/libdha/sysdep/AsmMacros_powerpc.h
@@ -7,7 +7,7 @@
#ifndef __ASM_MACROS_POWERPC_H
#define __ASM_MACROS_POWERPC_H
-#if defined(Lynx)
+#if defined(Lynx) || defined(__OpenBSD__)
extern unsigned char *ioBase;
@@ -18,7 +18,7 @@ static __inline__ volatile void eieio()
static __inline__ void outb(short port, unsigned char value)
{
- *(uchar *)(ioBase + port) = value; eieio();
+ *(unsigned char *)(ioBase + port) = value; eieio();
}
static __inline__ void outw(short port, unsigned short value)