From: Steve Peters Date: Fri, 4 Nov 2005 09:00:25 +0000 (-0600) Subject: Re: futimes [PATCH] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bff98e240ae94e05cc03de1adde32b5bee958718;p=p5sagit%2Fp5-mst-13.2.git Re: futimes [PATCH] Message-ID: <20051104150025.GA3873@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@25995 --- diff --git a/Configure b/Configure index fba1111..ae09a0e 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 Oct 31 19:12:32 CET 2005 [metaconfig 3.0 PL70] +# Generated on Fri Nov 4 17:55:32 CET 2005 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <&4 +$cat >try.c < +#include +#include +#include + +int main () +{ + int fd, rv; + fd = open ("try.c", O_RDWR); + if (-1 == fd) exit (1); + rv = futimes (fd, NULL); + exit (rv == -1 ? errno : 0); +} +EOCP +set try +if eval $compile; then + `$run ./try` + rc=$? + case "$rc" in + 0) echo "Yes, it does" >&4 + d_futimes="$define" + ;; + *) echo "No, it has futimes, but it isn't working ($rc) (probably harmless)\n" >&4 + ;; + esac +else + echo "No, it does not (probably harmless)\n" >&4 +fi +$rm -f try.* try core core.try.* : see if getcwd exists set getcwd d_getcwd