From 174c6a4da86b4d857456605522ed2d0e7712d0cd Mon Sep 17 00:00:00 2001 From: naddy Date: Fri, 4 Oct 2019 20:56:02 +0000 Subject: [PATCH] skip unused code: clang does not handle x86 inline assembly on non-x86 --- .../lcdproc/patches/patch-server_drivers_port_h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 comms/lcdproc/patches/patch-server_drivers_port_h diff --git a/comms/lcdproc/patches/patch-server_drivers_port_h b/comms/lcdproc/patches/patch-server_drivers_port_h new file mode 100644 index 00000000000..15d09ecd1aa --- /dev/null +++ b/comms/lcdproc/patches/patch-server_drivers_port_h @@ -0,0 +1,17 @@ +$OpenBSD: patch-server_drivers_port_h,v 1.1 2019/10/04 20:56:02 naddy Exp $ + +Skip unused code for accessing I/O ports: clang on non-x86 does not +handle x86 inline assembly. + +Index: server/drivers/port.h +--- server/drivers/port.h.orig ++++ server/drivers/port.h +@@ -333,7 +333,7 @@ static inline int port_deny_multiple (unsigned short p + return i386_set_ioperm(port, count, 0); + } + +-#else ++#elif 0 + + /* ------------------------- Everything else ----------------------------- */ + /* Last chance! Use /dev/io and i386 ASM code (BSD4.3 ?) */