mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
structure parameters differently than other posix-like systems.
This commit is contained in:
parent
2a1b4a69b7
commit
db5483be64
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue