58e5370848
from josh elasser, thanks!
26 lines
663 B
Plaintext
26 lines
663 B
Plaintext
$OpenBSD: patch-callback_trampoline_r_trampoline_c,v 1.2 2010/08/23 14:16:09 jasper Exp $
|
|
--- callback/trampoline_r/trampoline.c.orig Mon Jan 26 07:00:05 2004
|
|
+++ callback/trampoline_r/trampoline.c Sat Jul 31 06:59:02 2010
|
|
@@ -21,7 +21,7 @@
|
|
#endif
|
|
#endif
|
|
#if defined(__rs6000__)
|
|
-#if defined(__NetBSD__)
|
|
+#if defined(__NetBSD__) || defined(__OpenBSD__)
|
|
#define __rs6000netbsd__
|
|
#else
|
|
#if !defined(_AIX)
|
|
@@ -196,8 +196,12 @@ extern RETGETPAGESIZETYPE getpagesize ();
|
|
#ifdef linux
|
|
#include <asm/cachectl.h>
|
|
#else
|
|
+#ifdef __OpenBSD__
|
|
+#include <mips64/sysarch.h>
|
|
+#else
|
|
#ifdef HAVE_SYS_CACHECTL_H
|
|
#include <sys/cachectl.h>
|
|
+#endif
|
|
#endif
|
|
#endif
|
|
#endif
|