From: Steve Peters Date: Mon, 10 Oct 2005 07:51:17 +0000 (-0500) Subject: Add probe for unsetenv () X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bdf33aa7435b6e4ab927ed6430f3f240f211d879;p=p5sagit%2Fp5-mst-13.2.git Add probe for unsetenv () Subject: Re: Perl's handling of environ breaks on Solaris 10 Message-ID: <20051010125117.GA27566@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@25733 --- diff --git a/Configure b/Configure index 8991f1a..e445bdb 100755 --- a/Configure +++ b/Configure @@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Sep 12 15:44:06 CEST 2005 [metaconfig 3.0 PL70] +# Generated on Mon Oct 10 16:08:59 CEST 2005 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_unordered HAS_UNORDERED /**/ +/* HAS_UNSETENV: + * This symbol, if defined, indicates that the unsetenv () routine is + * available for use. + */ +#$d_unsetenv HAS_UNSETENV /**/ + /* HAS_USTAT: * This symbol, if defined, indicates that the ustat system call is * available to query file system statistics by dev_t. diff --git a/handy.h b/handy.h index 69ee8d3..e28faa8 100644 --- a/handy.h +++ b/handy.h @@ -175,7 +175,7 @@ typedef U64TYPE U64; #endif /* HMB H.Merijn Brand - a placeholder for preparing Configure patches */ -#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE) +#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE) && defined(HAS_UNSETENV) /* Not (yet) used at top level, but mention them for metaconfig */ #endif