summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2017-09-14 10:12:01 -0400
committerTony Cook <tony@develop-help.com>2017-09-18 10:43:01 +1000
commitc3fcee079e395988a7b112b8e5e7e4a654048cf7 (patch)
treeb4c396148b820830378ce4b3b37d48ed8be219d7
parent84dbe61c9ddf90f31e473e6a6d04ad91139c88b1 (diff)
downloadperl-c3fcee079e395988a7b112b8e5e7e4a654048cf7.tar.gz
Make use of *at functions dependent upon HAS_LINKAT.
As suggested by Zefram. For: RT #132087.
-rw-r--r--doio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 7307987a9a..7b6c43531b 100644
--- a/doio.c
+++ b/doio.c
@@ -863,7 +863,8 @@ S_openindirtemp(pTHX_ GV *gv, SV *orig_name, SV *temp_out_name) {
}
#if defined(HAS_UNLINKAT) && defined(HAS_RENAMEAT) && defined(HAS_FCHMODAT) && \
- (defined(HAS_DIRFD) || defined(HAS_DIR_DD_FD)) && !defined(NO_USE_ATFUNCTIONS)
+ (defined(HAS_DIRFD) || defined(HAS_DIR_DD_FD)) && !defined(NO_USE_ATFUNCTIONS) && \
+ defined(HAS_LINKAT)
# define ARGV_USE_ATFUNCTIONS
#endif