aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-Search-Namazu/files
diff options
context:
space:
mode:
Diffstat (limited to 'databases/p5-Search-Namazu/files')
-rw-r--r--databases/p5-Search-Namazu/files/extrapatch-Namazu.xs18
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/p5-Search-Namazu/files/extrapatch-Namazu.xs b/databases/p5-Search-Namazu/files/extrapatch-Namazu.xs
new file mode 100644
index 000000000000..0675c90f6983
--- /dev/null
+++ b/databases/p5-Search-Namazu/files/extrapatch-Namazu.xs
@@ -0,0 +1,18 @@
+--- Namazu.xs.orig Fri Jun 2 21:58:37 2006
++++ Namazu.xs Fri Jun 2 21:59:07 2006
+@@ -46,6 +46,15 @@
+ }
+ #endif
+
++/* try to be compatible with older perls */
++/* SvPV_nolen() macro first defined in 5.005_55 */
++/* this is slow, not threadsafe, but works */
++#include "patchlevel.h"
++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55))
++static STRLEN nolen_na;
++# define SvPV_nolen(sv) SvPV ((sv), nolen_na)
++#endif
++
+ /* for old perl (< 5.004_04?) */
+ #if !defined(PL_na) && defined(na)
+ #define PL_na na