diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-09-23 19:15:36 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-09-23 19:15:36 +0000 |
commit | 0fd66b6672a1dffd61ab646cff6459dcd4f2cd32 (patch) | |
tree | d6343f489ef46278fbbf18020e1f5d271774a0f0 /dev-libs/libffi/files | |
parent | Remove virtual/libc (diff) | |
download | gentoo-2-0fd66b6672a1dffd61ab646cff6459dcd4f2cd32.tar.gz gentoo-2-0fd66b6672a1dffd61ab646cff6459dcd4f2cd32.tar.bz2 gentoo-2-0fd66b6672a1dffd61ab646cff6459dcd4f2cd32.zip |
Fix detection and test on FreeBSD and keyword it.
(Portage version: 2.2_rc41/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libffi/files')
-rw-r--r-- | dev-libs/libffi/files/libffi-3.0.8-fbsd.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/libffi/files/libffi-3.0.8-fbsd.patch b/dev-libs/libffi/files/libffi-3.0.8-fbsd.patch new file mode 100644 index 000000000000..0b6f422e66a0 --- /dev/null +++ b/dev-libs/libffi/files/libffi-3.0.8-fbsd.patch @@ -0,0 +1,26 @@ +Index: libffi-3.0.8/src/x86/ffi.c +=================================================================== +--- libffi-3.0.8.orig/src/x86/ffi.c ++++ libffi-3.0.8/src/x86/ffi.c +@@ -124,7 +124,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif + #ifdef X86 + case FFI_TYPE_STRUCT: + #endif +-#if defined(X86) || defined(X86_DARWIN) ++#if defined(X86) || defined(X86_DARWIN) || defined(X86_FREEBSD) + case FFI_TYPE_UINT8: + case FFI_TYPE_UINT16: + case FFI_TYPE_SINT8: +Index: libffi-3.0.8/configure.ac +=================================================================== +--- libffi-3.0.8.orig/configure.ac ++++ libffi-3.0.8/configure.ac +@@ -71,7 +71,7 @@ case "$host" in + TARGET=PA_HPUX; TARGETDIR=pa + ;; + +- i386-*-freebsd* | i386-*-openbsd*) ++ i?86-*-freebsd* | i?86-*-openbsd*) + TARGET=X86_FREEBSD; TARGETDIR=x86 + ;; + i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*) |