Commit db5483be authored by Thomas Heller's avatar Thomas Heller

Try to fix the tests on OpenBSD. Apparently OpenBSD passes

structure parameters differently than other posix-like systems.
parent 2a1b4a69
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment