diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-06-09 01:46:24 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-06-09 01:46:24 +0000 |
commit | c60de118ac02783721d048cac6d76af39f98fdaf (patch) | |
tree | 83af3a32b689ac0eeebf639fcfe14c577a10997e /databases/p5-Search-Namazu/files | |
parent | ab0ca9b20ca66703fcb67eae9eb9dda6d357664a (diff) |
Notes
Diffstat (limited to 'databases/p5-Search-Namazu/files')
-rw-r--r-- | databases/p5-Search-Namazu/files/extrapatch-Namazu.xs | 18 |
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 |