openbsd-ports/devel/ffcall/patches/patch-trampoline_trampoline_c
jasper 9e316775ae - fix build on mips64(el), other arches are untouched
ok sthen@

ports is unlocked for a while only for those who have been informed.
if I DID NOT MAIL YOU, DO NOT COMMIT!
2010-02-23 20:11:15 +00:00

17 lines
444 B
Plaintext

$OpenBSD: patch-trampoline_trampoline_c,v 1.1 2010/02/23 20:11:15 jasper Exp $
--- trampoline/trampoline.c.orig Thu Feb 11 23:38:13 2010
+++ trampoline/trampoline.c Thu Feb 11 23:40:59 2010
@@ -192,8 +192,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