From 488fb4e6b22d5a3b20041f7739a621fc15d0268c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 16 Jun 2008 23:03:17 +0200 Subject: [PATCH] src/Makefile.am: Define HAS_BOOL when building the perl plugin. This works around a bug in Perl, which despite C99 defining the "bool" type defines its own version of that type unless HAS_BOOL is defined... :-/ Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 4e157fa9..c852f34e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -510,6 +510,9 @@ endif if BUILD_PLUGIN_PERL pkglib_LTLIBRARIES += perl.la perl_la_SOURCES = perl.c +# Despite C99 providing the "bool" type thru stdbool.h, Perl defines its own +# version of that type if HAS_BOOL is not defined... *sigh* +perl_la_CPPFLAGS = -DHAS_BOOL=1 perl_la_CFLAGS = $(AM_CFLAGS) \ $(PERL_CFLAGS) \ -DXS_VERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\" -- 2.11.0