aboutsummaryrefslogtreecommitdiff
path: root/utils/lcdproc/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-08-07 15:24:55 -0700
committerRosen Penev <rosenp@gmail.com>2019-08-07 16:14:00 -0700
commitfa40b85f20f697e4c0b7b96b77b3a40902c72605 (patch)
tree7f89a4c8782f64111bcaaf8f0ee77758477f4ccb /utils/lcdproc/patches
parent3ee32eb9bccaa5705fec2a576911ac7f676aaea5 (diff)
lcdproc: Fix non x86 platforms on musl
Musl only specifies in/outb for x86/x86. Use the fallback path in case musl is used. This should fail compilation during the linking stage but for some reason does not. Will do if -Werror=implicit-function-declaration is specified. Fixed up license information. Other small cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/lcdproc/patches')
-rw-r--r--utils/lcdproc/patches/110-in-outb.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/lcdproc/patches/110-in-outb.patch b/utils/lcdproc/patches/110-in-outb.patch
new file mode 100644
index 000000000..7bf34eb30
--- /dev/null
+++ b/utils/lcdproc/patches/110-in-outb.patch
@@ -0,0 +1,11 @@
+--- a/server/drivers/port.h
++++ b/server/drivers/port.h
+@@ -94,7 +94,7 @@ static inline int port_deny_multiple(unsigned short port, unsigned short count);
+ /* ---------------------------- Linux ------------------------------------ */
+ /* Use ioperm, inb and outb in <sys/io.h> (Linux) */
+ /* And iopl for higher addresses of PCI LPT cards */
+-#if defined HAVE_IOPERM
++#if defined(__GLIBC__) || (defined(__x86__) || defined(__x86_64__))
+
+ /* Glibc2 and Glibc1 */
+ # ifdef HAVE_SYS_IO_H