From 57a471099d06ba763ab904ebc721c164da308436 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sat, 22 Nov 2003 10:36:24 +0000 Subject: [PATCH] No (?) non-x86 has ioperm (the direct IO-Port access mechanism) - so we disable this (stereo shutter glass?) code. git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1843 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/kasc/tuxkart/non-x86-ioperm.patch | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 package/kasc/tuxkart/non-x86-ioperm.patch diff --git a/package/kasc/tuxkart/non-x86-ioperm.patch b/package/kasc/tuxkart/non-x86-ioperm.patch new file mode 100644 index 000000000..2a36cf272 --- /dev/null +++ b/package/kasc/tuxkart/non-x86-ioperm.patch @@ -0,0 +1,47 @@ + +No (?) non-x86 has ioperm (the direct IO-Port access mechanism) - so +we disable this (stereo shutter glass?) code. + + - Rene Rebe + +--- tuxkart-0.2.0/src/gfx.cxx.orig 2001-11-10 00:32:52.000000000 +0100 ++++ tuxkart-0.2.0/src/gfx.cxx 2003-11-22 11:08:12.000000000 +0100 +@@ -4,9 +4,11 @@ + #ifndef WIN32 + #include + #include ++#ifdef __i386__ + #include + #include + #endif ++#endif + + static unsigned int lastGLUTKeystroke = 0 ; + +@@ -197,6 +199,7 @@ + return ; + } + ++#ifdef __i386__ + fprintf ( stderr, "Requesting control of parallel printer port...\n" ) ; + + int res = ioperm ( LPBASE, 8, 1 ) ; +@@ -212,13 +215,18 @@ + fprintf ( stderr, "Stereo Enabled!\n" ) ; + stereo = -1 ; + } ++#else ++ stereo = 0; ++#endif + } + ++#ifdef __i386__ + if ( stereo != 0 ) + { + outb ( (stereo==-1) ? ~3 : ~2, LPBASE+2 ) ; + stereo = -stereo ; + } ++#endif + } + +