summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-04-03 16:19:45 (GMT)
committerThomas Heller <theller@ctypes.org>2006-04-03 16:19:45 (GMT)
commitdb5483be64c59edd743d69e601a1e990c4576ec7 (patch)
tree212eb5516bf508ec82899ecaa0a0992a7cfc50dc /Modules
parent2a1b4a69b76f866400611287cba9016a519322e3 (diff)
downloadcpython-db5483be64c59edd743d69e601a1e990c4576ec7.zip
cpython-db5483be64c59edd743d69e601a1e990c4576ec7.tar.gz
cpython-db5483be64c59edd743d69e601a1e990c4576ec7.tar.bz2
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
structure parameters differently than other posix-like systems.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/libffi/src/x86/ffi.c4
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 e4d5fc3..7bd5c69 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)
{