components/python/python26/patches/Python26-08-ctypes.patch
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 7792 ee802f9b5132
child 7816 79ee06fdecc5
--- a/components/python/python26/patches/Python26-08-ctypes.patch	Wed Mar 22 09:27:09 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-diff --git Python-2.6.4/Modules/_ctypes/callproc.c Python-2.6.4/Modules/_ctypes/callproc.c
---- Python-2.6.4/Modules/_ctypes/callproc.c
-+++ Python-2.6.4/Modules/_ctypes/callproc.c
-@@ -73,6 +73,8 @@
- #include <malloc.h>
- #endif
- 
-+#include <alloca.h>
-+
- #include <ffi.h>
- #include "ctypes.h"
- 
-diff --git Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffitarget.h Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffitarget.h
---- Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffitarget.h
-+++ Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffitarget.h
-@@ -54,10 +54,10 @@
- #endif
- 
-   /* ---- Intel x86 and AMD x86-64 - */
--#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
-+#if !defined(X86_WIN32) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
-   FFI_SYSV,
-   FFI_UNIX64,   /* Unix variants all use the same ABI for x86-64  */
--#ifdef __i386__
-+#if defined (__i386__) || defined (__i386)
-   FFI_DEFAULT_ABI = FFI_SYSV,
- #else
-   FFI_DEFAULT_ABI = FFI_UNIX64,