PATCH: ioports on ppc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Linux/PPC has ppdev.h, but no direct io access.
It also has 'unsigned char' by default, so change variable to 'int'.

Ciao, Marcus

Changelog:
	Moved do_pp_port_access out of the DIRECT_IO_ACCESS case, since
	it does not depend on it.

Index: ioports.c
===================================================================
RCS file: /home/wine/wine/msdos/ioports.c,v
retrieving revision 1.32
diff -u -r1.32 ioports.c
--- ioports.c	31 May 2002 23:06:52 -0000	1.32
+++ ioports.c	4 Aug 2002 17:41:53 -0000
@@ -79,14 +79,15 @@
 # undef PP_IO_ACCESS
 #endif  /* linux && __i386__ */
 
+#ifdef HAVE_PPDEV
+static int do_pp_port_access = -1; /* -1: uninitialized, 1: not available
+				       0: available);*/
+#endif
+
 #ifdef DIRECT_IO_ACCESS
 
 extern int iopl(int level);
 static char do_direct_port_access = -1;
-#ifdef HAVE_PPDEV
-static char do_pp_port_access = -1; /* -1: uninitialized, 1: not available
-				       0: available);*/
-#endif
 static char port_permissions[0x10000];
 
 #define IO_READ  1


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux