From ca6b11a331cfd981bd54f9bba62aeee22f1ac245 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Jan 04 2021 09:56:41 +0000 Subject: Apply patch Data-Dumper-2.167-Provide-SvPVCLEAR-macro.patch patch_name: Data-Dumper-2.167-Provide-SvPVCLEAR-macro.patch present_in_specfile: true --- diff --git a/Dumper.xs b/Dumper.xs index 0e7142e..5a21721 100644 --- a/Dumper.xs +++ b/Dumper.xs @@ -8,6 +8,11 @@ # include "ppport.h" #endif +/* SvPVCLEAR was added after 5.25.5 and ppport.h does not provide it */ +#if !defined SvPVCLEAR +#define SvPVCLEAR(x) sv_setpvs((x), "") +#endif + #if PERL_VERSION < 8 # define DD_USE_OLD_ID_FORMAT #endif