[MPlayer-dev-eng] [PATCH] OpenBSD ppc
Björn Sandell
biorn at dce.chalmers.se
Wed Jul 3 22:57:36 CEST 2002
On Wed, 3 Jul 2002, Felix Buenemann wrote:
> On Wednesday 03 July 2002 18:21, Björn Sandell wrote:
> > Some small patches to make powerpcers happier.
> doesn't aplly, read DOCS/tech/patches.txt point 7
Ok, here's the attached version.
Björn Sandell DCE/DFS Sysadmin IT department
Chalmers University of Technology www.dce.chalmers.se
-------------- next part --------------
Index: libdha/sysdep/AsmMacros_powerpc.h
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/sysdep/AsmMacros_powerpc.h,v
retrieving revision 1.1
diff -u -r1.1 AsmMacros_powerpc.h
--- libdha/sysdep/AsmMacros_powerpc.h 15 Jan 2002 08:31:53 -0000 1.1
+++ libdha/sysdep/AsmMacros_powerpc.h 3 Jul 2002 20:59:46 -0000
@@ -7,7 +7,7 @@
#ifndef __ASM_MACROS_POWERPC_H
#define __ASM_MACROS_POWERPC_H
-#if defined(Lynx)
+#if defined(Lynx) || defined(__OpenBSD__)
extern unsigned char *ioBase;
@@ -18,7 +18,7 @@
static __inline__ void outb(short port, unsigned char value)
{
- *(uchar *)(ioBase + port) = value; eieio();
+ *(unsigned char *)(ioBase + port) = value; eieio();
}
static __inline__ void outw(short port, unsigned short value)
Index: libdha/sysdep/pci_openbsd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/sysdep/pci_openbsd.c,v
retrieving revision 1.3
diff -u -r1.3 pci_openbsd.c
--- libdha/sysdep/pci_openbsd.c 12 May 2002 02:18:50 -0000 1.3
+++ libdha/sysdep/pci_openbsd.c 3 Jul 2002 20:59:46 -0000
@@ -4,6 +4,8 @@
Modified for readability by Nick Kurshev
*/
+#ifdef __i386__
+
#include <errno.h>
#include <sys/types.h>
#include <machine/sysarch.h>
@@ -22,3 +24,4 @@
/* Nothing to do */
return(0);
}
+#endif
More information about the MPlayer-dev-eng
mailing list