mirror of the now-defunct rocklinux.org
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.

47 lines
1009 B

  1. No (?) non-x86 has ioperm (the direct IO-Port access mechanism) - so
  2. we disable this (stereo shutter glass?) code.
  3. - Rene Rebe <rene@rocklinux.org>
  4. --- tuxkart-0.2.0/src/gfx.cxx.orig 2001-11-10 00:32:52.000000000 +0100
  5. +++ tuxkart-0.2.0/src/gfx.cxx 2003-11-22 11:08:12.000000000 +0100
  6. @@ -4,9 +4,11 @@
  7. #ifndef WIN32
  8. #include <unistd.h>
  9. #include <string.h>
  10. +#ifdef __i386__
  11. #include <sys/io.h>
  12. #include <sys/perm.h>
  13. #endif
  14. +#endif
  15. static unsigned int lastGLUTKeystroke = 0 ;
  16. @@ -197,6 +199,7 @@
  17. return ;
  18. }
  19. +#ifdef __i386__
  20. fprintf ( stderr, "Requesting control of parallel printer port...\n" ) ;
  21. int res = ioperm ( LPBASE, 8, 1 ) ;
  22. @@ -212,13 +215,18 @@
  23. fprintf ( stderr, "Stereo Enabled!\n" ) ;
  24. stereo = -1 ;
  25. }
  26. +#else
  27. + stereo = 0;
  28. +#endif
  29. }
  30. +#ifdef __i386__
  31. if ( stereo != 0 )
  32. {
  33. outb ( (stereo==-1) ? ~3 : ~2, LPBASE+2 ) ;
  34. stereo = -stereo ;
  35. }
  36. +#endif
  37. }