summaryrefslogtreecommitdiff
path: root/graphics/p5-GD/files/patch-GD.xs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/p5-GD/files/patch-GD.xs')
-rw-r--r--graphics/p5-GD/files/patch-GD.xs33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/p5-GD/files/patch-GD.xs b/graphics/p5-GD/files/patch-GD.xs
new file mode 100644
index 000000000000..fc34f5f463be
--- /dev/null
+++ b/graphics/p5-GD/files/patch-GD.xs
@@ -0,0 +1,33 @@
+--- GD.xs.orig Thu Apr 24 07:00:11 2003
++++ GD.xs Wed May 14 17:33:13 2003
+@@ -18,6 +18,30 @@
+ /* Copyright 1995 - 1998, Lincoln D. Stein. See accompanying README file for
+ usage restrictions */
+
++#ifndef PERL_REVISION
++# ifndef __PATCHLEVEL_H_INCLUDED__
++# include "patchlevel.h"
++# endif
++# ifndef PERL_REVISION
++# define PERL_REVISION (5)
++ /* Replace: 1 */
++# define PERL_VERSION PATCHLEVEL
++# define PERL_SUBVERSION SUBVERSION
++ /* Replace PERL_PATCHLEVEL with PERL_VERSION */
++ /* Replace: 0 */
++# endif
++#endif
++
++#if (PERL_VERSION == 5) && (PERL_SUBVERSION==3)
++#ifndef PL_na
++# define PL_na na
++#endif
++
++#ifndef SvPV_nolen
++# define SvPV_nolen(sv) SvPV(sv, PL_na)
++#endif
++#endif /* 5.00503 */
++
+ static int
+ not_here(char *s)
+ {