From: Sebastian Harl Date: Mon, 16 Jun 2008 21:03:17 +0000 (+0200) Subject: src/Makefile.am: Define HAS_BOOL when building the perl plugin. X-Git-Tag: collectd-4.5.0~114 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=488fb4e6b22d5a3b20041f7739a621fc15d0268c;p=collectd.git 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 --- 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)\"