mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
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>
(cherry-picked from fa40b85f20)
12 lines
489 B
Diff
12 lines
489 B
Diff
--- 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
|