aboutsummaryrefslogtreecommitdiff
path: root/devel/libffi
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-02-03 18:20:38 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-02-03 18:20:38 +0000
commit59a5c26c67f2ade03e9da562f97d0916617db045 (patch)
tree98143ddd0bd6bbf371fc80b71417bdb3ed198447 /devel/libffi
parent3503833535d553b225288a0da807dc4ec028d3fa (diff)
downloadports-59a5c26c67f2ade03e9da562f97d0916617db045.tar.gz
ports-59a5c26c67f2ade03e9da562f97d0916617db045.zip
Fix the build on PowerPC.
andreast@ said he will upstream his patch ASAP. PR: ports/175781 Submitted by: andreast
Notes
Notes: svn path=/head/; revision=311477
Diffstat (limited to 'devel/libffi')
-rw-r--r--devel/libffi/files/patch-src__powerpc_ffi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/libffi/files/patch-src__powerpc_ffi.c b/devel/libffi/files/patch-src__powerpc_ffi.c
new file mode 100644
index 000000000000..1838cd58a9ca
--- /dev/null
+++ b/devel/libffi/files/patch-src__powerpc_ffi.c
@@ -0,0 +1,14 @@
+--- src/powerpc/ffi.c.orig 2013-02-02 17:22:50.000000000 +0100
++++ src/powerpc/ffi.c 2013-02-02 15:30:37.000000000 +0100
+@@ -664,9 +664,11 @@
+ switch (type)
+ {
+ #ifndef __NO_FPRS__
++#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
+ case FFI_TYPE_LONGDOUBLE:
+ flags |= FLAG_RETURNS_128BITS;
+ /* Fall through. */
++#endif
+ case FFI_TYPE_DOUBLE:
+ flags |= FLAG_RETURNS_64BITS;
+ /* Fall through. */