aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-30 05:37:44 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-30 05:37:44 +0800
commit397fcac3247401ffdf4185574371ff6fa3dfd2a3 (patch)
tree42147f344987b10d850f7104140feca2b7147d41 /comms
parent975aceaf42fbef28897c289adee8dbb37df3951a (diff)
downloadfreebsd-ports-graphics-397fcac3247401ffdf4185574371ff6fa3dfd2a3.tar.gz
freebsd-ports-graphics-397fcac3247401ffdf4185574371ff6fa3dfd2a3.tar.zst
freebsd-ports-graphics-397fcac3247401ffdf4185574371ff6fa3dfd2a3.zip
Fix compilation on non-i386.
PR: ports/82691 Submitted by: maintainer
Diffstat (limited to 'comms')
-rw-r--r--comms/libticables/files/patch-src_bsd_bsd__ioports.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/comms/libticables/files/patch-src_bsd_bsd__ioports.c b/comms/libticables/files/patch-src_bsd_bsd__ioports.c
new file mode 100644
index 00000000000..0389343cbf6
--- /dev/null
+++ b/comms/libticables/files/patch-src_bsd_bsd__ioports.c
@@ -0,0 +1,29 @@
+--- src/bsd/bsd_ioports.c.orig Thu Apr 29 20:25:16 2004
++++ src/bsd/bsd_ioports.c Wed Jun 29 23:29:42 2005
+@@ -34,8 +34,10 @@
+ #include <sys/ioctl.h>
+ #include <fcntl.h>
+
++#ifdef __I386__
+ #include <machine/sysarch.h>
+ #include <machine/cpufunc.h>
++#endif
+
+ #include "gettext.h"
+
+@@ -55,6 +57,7 @@
+
+ /* I/O thru assembly code */
+
++#ifdef __I386__
+ static int bsd_asm_read_io(unsigned int addr)
+ {
+ return inb(addr);
+@@ -64,6 +67,7 @@
+ {
+ outb(addr, data);
+ }
++#endif
+
+
+ /* I/O thru ioctl() calls */