- fix an implicit declaration

This commit is contained in:
jasper 2013-03-21 16:22:51 +00:00
parent 0ddf737853
commit 791f5dabdf
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.18 2013/03/21 15:52:08 jasper Exp $
# $OpenBSD: Makefile,v 1.19 2013/03/21 16:22:51 jasper Exp $
# m68k - needs ELF and serious tinkering
# m88k - missing code
@ -8,7 +8,7 @@ NOT_FOR_ARCHS= m68k m88k vax
COMMENT= Foreign Function Interface
DISTNAME= libffi-3.0.9
REVISION= 0
REVISION= 1
SHARED_LIBS += ffi 0.0 # .5.9
CATEGORIES= devel

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_arm_ffi_c,v 1.1 2013/03/21 16:22:51 jasper Exp $
warning: implicit declaration of function '__clear_cache'
--- src/arm/ffi.c.orig Thu Mar 21 17:15:53 2013
+++ src/arm/ffi.c Thu Mar 21 17:16:12 2013
@@ -37,6 +37,8 @@
static int vfp_type_p (ffi_type *);
static void layout_vfp_args (ffi_cif *);
+extern void __clear_cache(char *beg, char *end);
+
/* ffi_prep_args is called by the assembly routine once stack space
has been allocated for the function's arguments