File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14096,7 +14096,7 @@ Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
14096
14096
{
14097
14097
DIR *ret;
14098
14098
14099
- #if defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
14099
+ #if !defined(HAS_FDOPENDIR) && defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
14100
14100
DIR *pwd;
14101
14101
const Direntry_t *dirent;
14102
14102
char smallbuf[256]; /* XXX MAXPATHLEN, surely? */
@@ -14116,7 +14116,13 @@ Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
14116
14116
if (ret)
14117
14117
return ret;
14118
14118
14119
- #if defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
14119
+ #ifdef HAS_FDOPENDIR
14120
+
14121
+ PERL_UNUSED_ARG(param);
14122
+
14123
+ ret = fdopendir(dup(my_dirfd(dp)));
14124
+
14125
+ #elif defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
14120
14126
14121
14127
PERL_UNUSED_ARG(param);
14122
14128
You can’t perform that action at this time.
0 commit comments