Blame SOURCES/Data-Dumper-2.167-Provide-SvPVCLEAR-macro.patch

9cf688
From c38b7faa8bb565553bf125da7244f013822735ff Mon Sep 17 00:00:00 2001
9cf688
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
9cf688
Date: Thu, 11 May 2017 13:44:14 +0200
9cf688
Subject: [PATCH] Provide SvPVCLEAR() macro
9cf688
MIME-Version: 1.0
9cf688
Content-Type: text/plain; charset=UTF-8
9cf688
Content-Transfer-Encoding: 8bit
9cf688
9cf688
To build with perl <= 5.25.5.
9cf688
9cf688
Signed-off-by: Petr Písař <ppisar@redhat.com>
9cf688
---
9cf688
 Dumper.xs | 5 +++++
9cf688
 1 file changed, 5 insertions(+)
9cf688
9cf688
diff --git a/Dumper.xs b/Dumper.xs
9cf688
index 0e7142e..5a21721 100644
9cf688
--- a/Dumper.xs
9cf688
+++ b/Dumper.xs
9cf688
@@ -8,6 +8,11 @@
9cf688
 #  include "ppport.h"
9cf688
 #endif
9cf688
 
9cf688
+/* SvPVCLEAR was added after 5.25.5 and ppport.h does not provide it */
9cf688
+#if !defined SvPVCLEAR
9cf688
+#define SvPVCLEAR(x) sv_setpvs((x), "")
9cf688
+#endif
9cf688
+
9cf688
 #if PERL_VERSION < 8
9cf688
 #  define DD_USE_OLD_ID_FORMAT
9cf688
 #endif
9cf688
-- 
9cf688
2.9.3
9cf688