diff options
author | Adam Hartley <BytesGuy@users.noreply.github.com> | 2020-07-22 13:15:30 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-30 15:47:41 -0600 |
commit | 6822b26820b70fed7be5f3e7f62e1f2c6552b61a (patch) | |
tree | 838e994c0bf07d45c8da472e64b8dbcae0a69a81 /hints | |
parent | 2ebac2d630023dc681e95512b4fe24ca5aa77d74 (diff) | |
download | perl-6822b26820b70fed7be5f3e7f62e1f2c6552b61a.tar.gz |
Simplify syscall check
Diffstat (limited to 'hints')
-rw-r--r-- | hints/darwin.sh | 7 |
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 |