sv.c, Perl_dirp_dup: Skip the fchdir sections if telldir and seekdir are not defined
authorBrian Fraser <fraserbn@gmail.com>
Sat, 18 May 2013 02:13:55 +0000 (23:13 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Tue, 21 Jan 2014 18:30:59 +0000 (15:30 -0300)
sv.c

diff --git a/sv.c b/sv.c
index b94e0b6..355d60c 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -11819,7 +11819,7 @@ Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
 {
     DIR *ret;
 
-#ifdef HAS_FCHDIR
+#if defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
     int rc = 0;
     DIR *pwd;
     const Direntry_t *dirent;
@@ -11840,7 +11840,7 @@ Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
     if (ret)
        return ret;
 
-#ifdef HAS_FCHDIR
+#if defined(HAS_FCHDIR) && defined(HAS_TELLDIR) && defined(HAS_SEEKDIR)
 
     PERL_UNUSED_ARG(param);