summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-aq
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5/patches/patch-aq')
-rw-r--r--lang/perl5/patches/patch-aq26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/perl5/patches/patch-aq b/lang/perl5/patches/patch-aq
new file mode 100644
index 00000000000..76765fc4106
--- /dev/null
+++ b/lang/perl5/patches/patch-aq
@@ -0,0 +1,26 @@
+$NetBSD: patch-aq,v 1.1 2006/05/06 12:32:20 jlam Exp $
+
+--- XSUB.h.orig 2006-01-02 09:45:29.000000000 -0500
++++ XSUB.h
+@@ -85,17 +85,16 @@ handled automatically by C<xsubpp>.
+ #ifndef PERL_UNUSED_VAR
+ # define PERL_UNUSED_VAR(x) ((void)x)
+ #endif
++#ifndef PERL_UNUSED_DECL
++# define PERL_UNUSED_DECL
++#endif
+
+ #define ST(off) PL_stack_base[ax + (off)]
+
+ #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
+ # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
+ #else
+-# ifdef HASATTRIBUTE_UNUSED
+-# define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
+-# else
+-# define XS(name) void name(pTHX_ CV* cv)
+-# endif
++# define XS(name) void name(pTHX_ CV* cv PERL_UNUSED_DECL)
+ #endif
+
+ #define dAX const I32 ax = MARK - PL_stack_base + 1