diff options
Diffstat (limited to 'meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch')
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch new file mode 100644 index 000000000..e39e9bda1 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 7fd144f101fa5c9316d3468ed26f55629afe1305 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 17 Dec 2019 17:55:54 -0800 | ||
4 | Subject: [PATCH 3/3] Fix non x86 platforms on musl | ||
5 | |||
6 | Musl only specifies in/outb for x86/x86. Use the fallback path in case | ||
7 | musl is used. | ||
8 | |||
9 | This should fail compilation during the linking stage but for some reason | ||
10 | does not. Will do if -Werror=implicit-function-declaration is specified. | ||
11 | |||
12 | Original here: https://github.com/openwrt/packages/blob/master/utils/lcdproc/patches/110-in-outb.patch | ||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | server/drivers/port.h | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/server/drivers/port.h b/server/drivers/port.h | ||
21 | index c584cd4e..bde235b3 100644 | ||
22 | --- a/server/drivers/port.h | ||
23 | +++ b/server/drivers/port.h | ||
24 | @@ -94,7 +94,7 @@ static inline int port_deny_multiple(unsigned short port, unsigned short count); | ||
25 | /* ---------------------------- Linux ------------------------------------ */ | ||
26 | /* Use ioperm, inb and outb in <sys/io.h> (Linux) */ | ||
27 | /* And iopl for higher addresses of PCI LPT cards */ | ||
28 | -#if defined HAVE_IOPERM | ||
29 | +#if defined(__GLIBC__) || (defined(__x86__) || defined(__x86_64__)) | ||
30 | |||
31 | /* Glibc2 and Glibc1 */ | ||
32 | # ifdef HAVE_SYS_IO_H | ||
33 | -- | ||
34 | 2.24.1 | ||
35 | |||