[Python-checkins] r43593 - python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c
thomas.heller
python-checkins at python.org
Mon Apr 3 18:19:45 CEST 2006
Author: thomas.heller
Date: Mon Apr 3 18:19:45 2006
New Revision: 43593
Modified:
python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c
Log:
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
structure parameters differently than other posix-like systems.
Modified: python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c
==============================================================================
--- python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c (original)
+++ python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c Mon Apr 3 18:19:45 2006
@@ -121,7 +121,7 @@
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 @@
cif->flags = FFI_TYPE_SINT64;
break;
-#ifdef X86_WIN32
+#if defined(X86_WIN32) || defined(__OpenBSD__)
case FFI_TYPE_STRUCT:
if (cif->rtype->size == 1)
{
More information about the Python-checkins
mailing list