summaryrefslogtreecommitdiff
path: root/hints/darwin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r--hints/darwin.sh13
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