Fix Perl5 shims for recent compilers.

With hat:	perl@
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-04-20 12:37:37 +00:00
parent 7daa9c7ea4
commit d0240695b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=384353
2 changed files with 14 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= swig
PORTVERSION= 1.3.40
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMESUFFIX= 13

View file

@ -0,0 +1,13 @@
--- Lib/perl5/noembed.h.orig 2009-08-17 12:06:08 UTC
+++ Lib/perl5/noembed.h
@@ -65,7 +65,9 @@
#undef eof
#endif
#ifdef bool
- #undef bool
+ #ifndef __bool_true_false_are_defined
+ #undef bool
+ #endif
#endif
#ifdef close
#undef close