Date: Mon, 27 Jun 2005 12:03:47 +0200 From: Tijl Coosemans <tijl@ulyssis.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/82691: [patch] comms/libticables: fix build failure on non-i386 Message-ID: <200506271203.47486.tijl@ulyssis.org> Resent-Message-ID: <200506271010.j5RAAGR2038504@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82691 >Category: ports >Synopsis: [patch] comms/libticables: fix build failure on non-i386 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jun 27 10:10:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: >Description: Build fails on non-i386 archs due to i386 specific function calls. http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.6.2005060522/libticables-3.9.2.log >How-To-Repeat: >Fix: Add the attached file as comms/libticables/files/patch-src-bsd-bsd_ioports.c --- patch-src-bsd-bsd_ioports.c begins here --- --- src/bsd/bsd_ioports.c.orig Mon Jun 27 10:55:22 2005 +++ src/bsd/bsd_ioports.c Mon Jun 27 10:57:24 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 */ --- patch-src-bsd-bsd_ioports.c ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506271203.47486.tijl>