summaryrefslogtreecommitdiff
blob: 55e2d5a35b0c99d140aeeb0735d86ccb687aa04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- vice/configure.in
+++ vice/configure.in
@@ -2299,6 +2299,7 @@
 
     if test x"$PARSID_SUPPORT" = "xno"; then
       AC_CHECK_FUNCS(ioperm,[PARSID_SUPPORT=yes],)
+      AC_CHECK_FUNCS(outb_p inb_p)
     fi
 
     if test x"$PARSID_SUPPORT" = "xyes"; then
--- vice/src/arch/unix/parsid.c
+++ vice/src/arch/unix/parsid.c
@@ -217,8 +217,12 @@
 #endif
 #endif
 #ifdef HAVE_IOPERM
+#ifndef HAVE_OUTB_P
+    outb(value, addr);
+#else
     outb_p(value, addr);
 #endif
+#endif
 }
 
 BYTE parsid_inb(int addr)
@@ -237,8 +241,12 @@
 #endif
 #endif
 #ifdef HAVE_IOPERM
+#ifndef HAVE_INB_P
+    return inb((unsigned short)addr);
+#else
     return inb_p((unsigned short)addr);
 #endif
+#endif
 }
 
 /* chip control pin assignments */