summaryrefslogtreecommitdiff
path: root/graphics/xine-lib/patches/patch-af
blob: 79b9ccb4353ff83ab3e82e7fea0882e384750d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-af,v 1.3 2003/10/24 00:49:04 mrg Exp $

--- src/xine-utils/ppcasm_string.S.orig	2003-10-24 09:52:09.000000000 +1000
+++ src/xine-utils/ppcasm_string.S	2003-10-24 09:52:39.000000000 +1000
@@ -18,6 +18,7 @@
 
 #warning Be forewarned - using PowerPC assembly
 
+#ifdef __linux__
 #define __KERNEL__
 #define __ASSEMBLY__
 
@@ -26,6 +27,13 @@
 #include <asm/processor.h>
 #include <asm/cache.h>
 #include <asm/errno.h>
+#endif
+
+#ifdef __NetBSD__
+#define _STANDALONE
+
+#include <machine/asm.h>
+#endif
 
 #define COPY_16_BYTES		\
 	lwz	r7,4(r4);	\