[Python-Dev] cpython (3.3): ctypes: AIX needs an explicit #include <alloca.h> to get alloca()

Christian Heimes christian at python.org
Tue Jun 18 13:28:13 CEST 2013


Am 18.06.2013 12:56, schrieb Jeremy Kloth:
> On Mon, Jun 17, 2013 at 2:02 PM, victor.stinner
> <python-checkins at python.org> wrote:
>> diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
>> --- a/Modules/_ctypes/callproc.c
>> +++ b/Modules/_ctypes/callproc.c
>> @@ -70,6 +70,7 @@
>>
>>  #include <ffi.h>
>>  #include "ctypes.h"
>> +#include <alloca.h>
> 
> This header is not present on Windows, thus breaking all the Windows
> buildbots.  Perhaps it should be wrapped in an AIX-specific #ifdef?

I have added HAVE_ALLOCA_H to configure:

http://hg.python.org/cpython/rev/7b6ae19dd116

Christian


More information about the Python-Dev mailing list