summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-09-05 22:25:25 -0300
committerBrian Fraser <fraserbn@gmail.com>2013-09-21 08:47:40 -0300
commit24d147a6349f969954a198149da3c250a48e8f5b (patch)
tree5529b2a9687ffac4e94d7fc4eb9a92f7804bd7f5 /perlio.c
parent58ab9e8b69853d478c6a8261b225b5a47d185d45 (diff)
downloadperl-24d147a6349f969954a198149da3c250a48e8f5b.tar.gz
Replaced an ifdef for sv_dup with USE_ITHREADS
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index 94b622b3d1..46933662b0 100644
--- a/perlio.c
+++ b/perlio.c
@@ -653,7 +653,7 @@ PerlIO_clone_list(pTHX_ PerlIO_list_t *proto, CLONE_PARAMS *param)
list = PerlIO_list_alloc(aTHX);
for (i=0; i < proto->cur; i++) {
SV *arg = proto->array[i].arg;
-#ifdef sv_dup
+#ifdef USE_ITHREADS
if (arg && param)
arg = sv_dup(arg, param);
#else
@@ -2259,7 +2259,7 @@ PerlIO_sv_dup(pTHX_ SV *arg, CLONE_PARAMS *param)
{
if (!arg)
return NULL;
-#ifdef sv_dup
+#ifdef USE_ITHREADS
if (param) {
arg = sv_dup(arg, param);
SvREFCNT_inc_simple_void_NN(arg);