Ticket #43150: perl5.16-dNOOP.diff
File perl5.16-dNOOP.diff, 1.3 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
5 5 6 6 name perl5.16 7 7 version 5.16.1 8 revision 38 revision 4 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories lang 11 11 license {Artistic-1 GPL} … … 29 29 depends_lib-append port:gdbm 30 30 31 31 patchfiles patch-Configure.diff \ 32 patch-handy.h.stdbool.diff 32 patch-handy.h.stdbool.diff \ 33 patch-perl.h.diff 33 34 34 35 platform darwin { 35 36 patchfiles-append patch-hints_darwin.sh.diff -
files/patch-perl.h.diff
1 --- perl.h.orig 2 +++ perl.h 3 @@ -359,7 +359,11 @@ 4 /* Rats: if dTHR is just blank then the subsequent ";" throws an error */ 5 /* Declaring a *function*, instead of a variable, ensures that we don't rely 6 on being able to suppress "unused" warnings. */ 7 +#ifdef __cplusplus 8 +#define dNOOP (void)0 9 +#else 10 #define dNOOP extern int Perl___notused(void) 11 +#endif 12 13 #ifndef pTHX 14 /* Don't bother defining tTHX and sTHX; using them outside