summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/threads/threads.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs
index 576bbea1c6..47f0f6bacc 100644
--- a/dist/threads/threads.xs
+++ b/dist/threads/threads.xs
@@ -27,6 +27,9 @@
#ifndef sv_dup_inc
# define sv_dup_inc(s,t) SvREFCNT_inc(sv_dup(s,t))
#endif
+#ifndef SvREFCNT_dec_NN
+# define SvREFCNT_dec_NN(x) SvREFCNT_dec(x)
+#endif
#ifndef PERL_UNUSED_RESULT
# if defined(__GNUC__) && defined(HASATTRIBUTE_WARN_UNUSED_RESULT)
# define PERL_UNUSED_RESULT(v) STMT_START { __typeof__(v) z = (v); (void)sizeof(z); } STMT_END