From: Thomas Heller Date: Mon, 3 Apr 2006 16:19:45 +0000 (+0000) Subject: Try to fix the tests on OpenBSD. Apparently OpenBSD passes X-Git-Tag: v2.5a1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db5483be64c59edd743d69e601a1e990c4576ec7;p=python Try to fix the tests on OpenBSD. Apparently OpenBSD passes structure parameters differently than other posix-like systems. --- diff --git a/Modules/_ctypes/libffi/src/x86/ffi.c b/Modules/_ctypes/libffi/src/x86/ffi.c index e4d5fc31c8..7bd5c695a3 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: -#ifndef X86_WIN32 +#if !defined(X86_WIN32) && !defined(__OpenBSD__) 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; -#ifdef X86_WIN32 +#if defined(X86_WIN32) || defined(__OpenBSD__) case FFI_TYPE_STRUCT: if (cif->rtype->size == 1) {