summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAdam Hartley <BytesGuy@users.noreply.github.com>2020-07-22 13:15:30 +0100
committerKarl Williamson <khw@cpan.org>2020-07-30 15:47:41 -0600
commit6822b26820b70fed7be5f3e7f62e1f2c6552b61a (patch)
tree838e994c0bf07d45c8da472e64b8dbcae0a69a81 /hints
parent2ebac2d630023dc681e95512b4fe24ca5aa77d74 (diff)
downloadperl-6822b26820b70fed7be5f3e7f62e1f2c6552b61a.tar.gz
Simplify syscall check
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index 4f73a9995e..40c84cf267 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -342,11 +342,10 @@ EOM
exit 1
esac
- prodvers_major=$(echo $prodvers|awk -F. '{print $1}')
- prodvers_minor=$(echo $prodvers|awk -F. '{print $2}')
+ darwin_major=$(echo $osvers|awk -F. '{print $1}')
- # macOS (10.12) deprecated syscall().
- if [[ ( "$prodvers_minor" -ge 12 && "$prodvers_major" -eq 10 ) || "$prodvers_major" -ge 11 ]]; then
+ # macOS 10.12 (darwin 6.0.0) deprecated syscall().
+ if [ "$darwin_major" -ge 6 ]; 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