diff options
author | Tony Cook <tony@develop-help.com> | 2017-09-15 10:25:10 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2017-09-18 10:17:29 +1000 |
commit | ac1ba09e8362c54848dc27d3484a5882c4b28f43 (patch) | |
tree | 885fa94f6c1466b8e44acaaa62563892ac15ae4c /hints | |
parent | 07d51b5358c64b41da1bc50212be10cc23242c2a (diff) | |
download | perl-ac1ba09e8362c54848dc27d3484a5882c4b28f43.tar.gz |
(perl #132087) correct *at() function detection on older darwin
Diffstat (limited to 'hints')
-rw-r--r-- | hints/darwin.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 690fe4e3ce..56e647825a 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -511,3 +511,16 @@ if test "$d_unsetenv" = "$define" -a \ ccflags="$ccflags -DPERL_USE_SAFE_PUTENV" fi EOOVER + +# if you use a newer toolchain before OS X 10.9 these functions may be +# incorrectly detected, so disable them +# OS X 10.10.x corresponds to kernel 14.x +case "$osvers" in + [1-9].*|1[0-3].*) + d_linkat=undef + d_openat=undef + d_renameat=undef + d_unlinkat=undef + d_fchmodat=undef + ;; +esac |