148e47e0bb
approved by wiz@. fixes my PR#23241.
26 lines
562 B
Text
26 lines
562 B
Text
$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); \
|