Blame SOURCES/Storable-2.62-Provide-SvPVCLEAR-macro.patch

1c0695
From ccf6bcc1ea08403f9081ce608009322e1b5091f6 Mon Sep 17 00:00:00 2001
1c0695
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
1c0695
Date: Thu, 11 May 2017 13:29:57 +0200
1c0695
Subject: [PATCH] Provide SvPVCLEAR() macro
1c0695
MIME-Version: 1.0
1c0695
Content-Type: text/plain; charset=UTF-8
1c0695
Content-Transfer-Encoding: 8bit
1c0695
1c0695
To build with perl <= 5.25.5.
1c0695
1c0695
Signed-off-by: Petr Písař <ppisar@redhat.com>
1c0695
---
1c0695
 Storable.xs | 5 +++++
1c0695
 1 file changed, 5 insertions(+)
1c0695
1c0695
diff --git a/Storable.xs b/Storable.xs
1c0695
index 9ba48be..f7d253c 100644
1c0695
--- a/Storable.xs
1c0695
+++ b/Storable.xs
1c0695
@@ -26,6 +26,11 @@
1c0695
 #include "ppport.h"             /* handle old perls */
1c0695
 #endif
1c0695
 
1c0695
+/* SvPVCLEAR was added after 5.25.5 and ppport.h does not provide it */
1c0695
+#if !defined SvPVCLEAR
1c0695
+#define SvPVCLEAR(x) sv_setpvs((x), "")
1c0695
+#endif
1c0695
+
1c0695
 #if 0
1c0695
 #define DEBUGME /* Debug mode, turns assertions on as well */
1c0695
 #define DASSERT /* Assertion mode */
1c0695
-- 
1c0695
2.9.3
1c0695