summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-01-14 09:30:13 -0700
committerKarl Williamson <khw@cpan.org>2020-01-21 09:29:09 -0700
commitadc48c40662e4c147b1f9b171574d14903affb00 (patch)
tree2e83e53de9eeb5109812986dc6a2fb4b8f0adbb2 /perl.h
parent29e038bafee2bf5115e01e319a45a7cce5bcdca2 (diff)
downloadperl-adc48c40662e4c147b1f9b171574d14903affb00.tar.gz
perl.h: Add EXTERN_C for flock()
This was failing to load on Solaris with g++ Thanks to Dagfinn Ilmari Mannsåker for figuring this out.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 57b9d2b53a..7fbbd59a38 100644
--- a/perl.h
+++ b/perl.h
@@ -7060,7 +7060,7 @@ C<strtoul>.
#endif
#if defined(HAS_FLOCK) && !defined(HAS_FLOCK_PROTO)
-int flock(int fd, int op);
+EXTERN_C int flock(int fd, int op);
#endif
#ifndef O_RDONLY