aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs
diff options
context:
space:
mode:
Diffstat (limited to 'security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs')
-rw-r--r--security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs18
1 files changed, 18 insertions, 0 deletions
diff --git a/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs b/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs
new file mode 100644
index 000000000000..b7c12bca7356
--- /dev/null
+++ b/security/p5-Crypt-Khazad/files/extrapatch-Khazad.xs
@@ -0,0 +1,18 @@
+--- Khazad.xs.orig Sat Dec 31 02:51:21 2005
++++ Khazad.xs Sat Dec 31 02:51:56 2005
+@@ -4,6 +4,15 @@
+ #include "ppport.h"
+ #include "_khazad.c"
+
++/* 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
++
+ typedef struct khazad {
+ NESSIEstruct key;
+ }* Crypt__Khazad;