You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/tvision/files/tvision-2.1.0_pre2-outb.patch

42 lines
954 B

Recent kernel headers no longer provide asm/io.h.
--- tvision/classes/linux/linuxdis.cc
+++ tvision/classes/linux/linuxdis.cc
@@ -300,7 +300,11 @@
*****************************************************************************/
#ifdef h386LowLevel
+#if HAVE_OUTB_IN_SYS
+#include <sys/io.h>
+#else
#include <asm/io.h>
+#endif
static inline
unsigned char I(unsigned char i)
--- tvision/classes/linux/linuxscr.cc
+++ tvision/classes/linux/linuxscr.cc
@@ -123,7 +123,11 @@
#include <tv/linux/log.h>
#ifdef h386LowLevel
+ #if HAVE_OUTB_IN_SYS
+ #include <sys/io.h>
+ #else
#include <asm/io.h>
+ #endif
#endif
// What a hell is that?!
--- tvision/config.pl
+++ tvision/config.pl
@@ -77,7 +77,7 @@
# glibc I use but the fact is that the needed tricks make it very Linux
# dependent.
LookForPThread() if $OSf eq 'Linux';
- #LookForOutB();
+ LookForOutB();
}
if ($Compf eq 'Cygwin')
{# Cygwin incorporates a XFree86 port