From fc40904e045af082462c36e0912872716faaf725 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 16 2020 11:16:12 +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