]> granicus.if.org Git - python/commitdiff
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's...
authorChristian Heimes <christian@cheimes.de>
Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)
committerChristian Heimes <christian@cheimes.de>
Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)
Modules/_ctypes/callproc.c
configure
configure.ac
pyconfig.h.in

index d0693b6c7d7f6b1becddec9e40881164dbf08786..ade52fd9d27a87748ab73a683d9ecccc68e938a9 100644 (file)
 
 #include <ffi.h>
 #include "ctypes.h"
+#ifdef HAVE_ALLOCA_H
+/* AIX needs alloca.h for alloca() */
 #include <alloca.h>
+#endif
 
 #if defined(_DEBUG) || defined(__MINGW32__)
 /* Don't use structured exception handling on Windows if this is defined.
index ffa089ca54cc2c295b1075136f8acc6a6b5ff851..a1b7bff2d285bac3c045af64829efdf567b880eb 100755 (executable)
--- a/configure
+++ b/configure
@@ -6928,7 +6928,7 @@ sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h
+bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
index 9179fe64de4df3396b2ed86f8910978f3fe345e4..501c1da4dc328f46ed66adb1b5446f29136934a3 100644 (file)
@@ -1526,7 +1526,7 @@ sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h)
+bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h)
 CPPFLAGS=$ac_save_cppflags
 AC_HEADER_DIRENT
 AC_HEADER_MAJOR
index cbbc42d99f58a26e5bb8289492e1f0eb774467c6..ba06ff4170f2f2637bcb1f480984f12c2d7d278d 100644 (file)
@@ -49,6 +49,9 @@
 /* Define to 1 if you have the `alarm' function. */
 #undef HAVE_ALARM
 
+/* Define to 1 if you have the <alloca.h> header file. */
+#undef HAVE_ALLOCA_H
+
 /* Define this if your time.h defines altzone. */
 #undef HAVE_ALTZONE