]> granicus.if.org Git - python/commitdiff
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
authorThomas Heller <theller@ctypes.org>
Mon, 3 Apr 2006 16:19:45 +0000 (16:19 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 3 Apr 2006 16:19:45 +0000 (16:19 +0000)
structure parameters differently than other posix-like systems.

Modules/_ctypes/libffi/src/x86/ffi.c

index e4d5fc31c8a82c47f1c7b504c3070f852bb12273..7bd5c695a36f4ff95d2b638625889ba3d5310316 100644 (file)
@@ -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)
         {