diff options
author | Adam Hartley <git@ahartley.com> | 2020-07-11 11:41:27 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-30 15:47:41 -0600 |
commit | 2ebac2d630023dc681e95512b4fe24ca5aa77d74 (patch) | |
tree | b2f0a06df69c7d674b0bdc9f1ae34f866815b8a0 /hints | |
parent | 4603d7dabf1b5f331d23c95d70b16e656c8124b0 (diff) | |
download | perl-2ebac2d630023dc681e95512b4fe24ca5aa77d74.tar.gz |
Update deprecated syscall check for 11.x and greater
Diffstat (limited to 'hints')
-rw-r--r-- | hints/darwin.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 988b766c4f..4f73a9995e 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -342,11 +342,11 @@ EOM exit 1 esac - # The X in 10.X + prodvers_major=$(echo $prodvers|awk -F. '{print $1}') prodvers_minor=$(echo $prodvers|awk -F. '{print $2}') # macOS (10.12) deprecated syscall(). - if [ "$prodvers_minor" -ge 12 ]; then + if [[ ( "$prodvers_minor" -ge 12 && "$prodvers_major" -eq 10 ) || "$prodvers_major" -ge 11 ]]; then d_syscall='undef' # If deploying to pre-10.12, suppress Time::HiRes's detection of the system clock_gettime() case "$MACOSX_DEPLOYMENT_TARGET" in |