[Python-checkins] r45440 - python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c
thomas.heller
python-checkins at python.org
Sat Apr 15 22:23:54 CEST 2006
Author: thomas.heller
Date: Sat Apr 15 22:23:54 2006
New Revision: 45440
Modified:
python/trunk/Modules/_ctypes/libffi/src/x86/ffi.c
Log:
Fix for FreeBSD. Fixes http://python.org/sf/1470353.
Looks like a libffi bug.
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 Sat Apr 15 22:23:54 2006
@@ -121,7 +121,7 @@
switch (cif->rtype->type)
{
case FFI_TYPE_VOID:
-#if !defined(X86_WIN32) && !defined(__OpenBSD__)
+#if !defined(X86_WIN32) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
case FFI_TYPE_STRUCT:
#endif
case FFI_TYPE_SINT64:
@@ -135,7 +135,7 @@
cif->flags = FFI_TYPE_SINT64;
break;
-#if defined(X86_WIN32) || defined(__OpenBSD__)
+#if defined(X86_WIN32) || defined(__OpenBSD__) || defined(__FreeBSD__)
case FFI_TYPE_STRUCT:
if (cif->rtype->size == 1)
{
More information about the Python-checkins
mailing list