Change 30222 by [EMAIL PROTECTED] on 2007/02/12 11:54:27
Integrate:
[ 30087]
alloca () might end up unreferenced during linking.
Thanks Steve
[ 30129]
Subject: [PATCH] cygwin: disable effect of -ansi -std=c89 on system
include
From: "Yitzchak Scott-Thoennes" <[EMAIL PROTECTED]>
Date: Mon, 5 Feb 2007 03:32:59 -0800 (PST)
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/maint-5.8/perl/cygwin/cygwin.c#8 integrate
... //depot/maint-5.8/perl/hints/cygwin.sh#6 integrate
Differences ...
==== //depot/maint-5.8/perl/cygwin/cygwin.c#8 (text) ====
Index: perl/cygwin/cygwin.c
--- perl/cygwin/cygwin.c#7~30107~ 2007-02-03 10:08:37.000000000 -0800
+++ perl/cygwin/cygwin.c 2007-02-12 03:54:27.000000000 -0800
@@ -10,6 +10,7 @@
#include <unistd.h>
#include <process.h>
#include <sys/cygwin.h>
+#include <alloca.h>
/*
* pp_system() implemented via spawn()
==== //depot/maint-5.8/perl/hints/cygwin.sh#6 (text) ====
Index: perl/hints/cygwin.sh
--- perl/hints/cygwin.sh#5~30046~ 2007-01-27 15:25:32.000000000 -0800
+++ perl/hints/cygwin.sh 2007-02-12 03:54:27.000000000 -0800
@@ -31,7 +31,7 @@
# (with cygwin 1.5.7, cygipc is deprecated in favor of the builtin cygserver)
libswanted="$libswanted gdbm_compat"
test -z "$optimize" && optimize='-O2'
-ccflags="$ccflags -DPERL_USE_SAFE_PUTENV"
+ccflags="$ccflags -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__"
# - otherwise i686-cygwin
archname='cygwin'
End of Patch.