diff options
author | Thomas Heller <theller@ctypes.org> | 2006-04-15 20:23:54 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-04-15 20:23:54 +0000 |
commit | eb6f1835b1ba7277bca96059fc28f36e774b89a6 (patch) | |
tree | 3d4837d4c32cdea36e69dc470cf2993c96cbb916 | |
parent | ab0e284a24a95462ae2c3ca01e991bdfe1dd6d2d (diff) | |
download | cpython-git-eb6f1835b1ba7277bca96059fc28f36e774b89a6.tar.gz |
Fix for FreeBSD. Fixes http://python.org/sf/1470353.
Looks like a libffi bug.
-rw-r--r-- | Modules/_ctypes/libffi/src/x86/ffi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/libffi/src/x86/ffi.c b/Modules/_ctypes/libffi/src/x86/ffi.c index 7bd5c695a3..7f792b7a92 100644 --- a/Modules/_ctypes/libffi/src/x86/ffi.c +++ b/Modules/_ctypes/libffi/src/x86/ffi.c @@ -121,7 +121,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif) switch (cif->rtype->type) { case FFI_TYPE_VOID: -#if !defined(X86_WIN32) && !defined(__OpenBSD__) +#if !defined(X86_WIN32) && !defined(__OpenBSD__) && !defined(__FreeBSD__) case FFI_TYPE_STRUCT: #endif case FFI_TYPE_SINT64: @@ -135,7 +135,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif) cif->flags = FFI_TYPE_SINT64; break; -#if defined(X86_WIN32) || defined(__OpenBSD__) +#if defined(X86_WIN32) || defined(__OpenBSD__) || defined(__FreeBSD__) case FFI_TYPE_STRUCT: if (cif->rtype->size == 1) { |