summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-20 17:56:05 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:43 -0400
commit24631c4f6929bc824e657b74b2edfada4c8d05b0 (patch)
treec5ffd49c8787dd4e576e89b4e42c209e315ec4f2 /make_ext.pl
parentc8aec1f6fbd64991e684df901a3b6326ca921302 (diff)
downloadperl-24631c4f6929bc824e657b74b2edfada4c8d05b0.tar.gz
amigaos4: flock unimplemented
The semantics of locking are very different: first you lock, then you open. (And for semaphore-like uses of files, you use ... semaphores.)
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl
index 1b055c3613..20c3bb0855 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -742,7 +742,9 @@ sub fallback_cleanup {
open my $fh, '>>', $file or die "open $file: $!";
# Quite possible that we're being run in parallel here.
# Can't use Fcntl this early to get the LOCK_EX
- flock $fh, 2 or warn "flock $file: $!";
+ if ($^O ne "amigaos") {
+ flock $fh, 2 or warn "flock $file: $!";
+ }
print $fh $contents or die "print $file: $!";
close $fh or die "close $file: $!";
}