summaryrefslogtreecommitdiff
path: root/user/dosbox/porttalk-fix.patch
diff options
context:
space:
mode:
authorHorst G. Burkhardt <horst@adelielinux.org>2018-05-27 02:25:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-05-27 02:25:26 -0500
commit714f6e55b098e34996af22b158d186baa8f26331 (patch)
treeb2a089243b4538917027ccd916d168356d1b2edb /user/dosbox/porttalk-fix.patch
parent1d9a0f330e04a73fa97b38a8f5f9d57d702d85bb (diff)
downloadpackages-714f6e55b098e34996af22b158d186baa8f26331.tar.gz
packages-714f6e55b098e34996af22b158d186baa8f26331.tar.bz2
packages-714f6e55b098e34996af22b158d186baa8f26331.tar.xz
packages-714f6e55b098e34996af22b158d186baa8f26331.zip
user/dosbox: new package
Diffstat (limited to 'user/dosbox/porttalk-fix.patch')
-rw-r--r--user/dosbox/porttalk-fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/dosbox/porttalk-fix.patch b/user/dosbox/porttalk-fix.patch
new file mode 100644
index 000000000..4cb4a6a0e
--- /dev/null
+++ b/user/dosbox/porttalk-fix.patch
@@ -0,0 +1,15 @@
+diff -Naur dosbox-x-dosbox-x-wip-20180513-1316/src/libs/porttalk/porttalk.cpp dosbox-x-dosbox-x-wip-20180513-1316-porttalk-fix/src/libs/porttalk/porttalk.cpp
+--- dosbox-x-dosbox-x-wip-20180513-1316/src/libs/porttalk/porttalk.cpp 2018-05-13 19:52:17.000000000 +0000
++++ dosbox-x-dosbox-x-wip-20180513-1316-porttalk-fix/src/libs/porttalk/porttalk.cpp 2018-05-16 12:40:17.232921780 +0000
+@@ -233,7 +233,11 @@
+ #ifdef LINUX
+ # if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ // This Linux ioperm only works up to port 0x3FF
++#if (__GNU_LIBRARY__ >= 6)
+ #include <sys/perm.h>
++#elif defined(__linux__) && !defined(__GLIBC__)
++#include <sys/io.h>
++#endif
+
+ bool initPorttalk() {
+ if(ioperm(0x3da,1,1) < 0) return false;