mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Fix compilation on non-i386.
PR: ports/82691 Submitted by: maintainer
This commit is contained in:
parent
d4cceef0a3
commit
efd04a771b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138210
29
comms/libticables/files/patch-src_bsd_bsd__ioports.c
Normal file
29
comms/libticables/files/patch-src_bsd_bsd__ioports.c
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user