From 8b7af53cb88ab75c0f15c89ce6867a9c6c8a4e67 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Sun, 2 Aug 2015 08:25:45 -0400 Subject: build: Fix build on Mac OS X, boolean bool and true conflict with clang macros in clang on Mac OS X, possibly with newer (?) versions of clang on Linux Change-Id: Ia8c56ae68b4ebffb99b0684ac72d68ec50eaa7fa BUG: 1249391 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/11816 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Susant Palai Reviewed-by: Jeff Darcy --- libglusterfs/src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c index de5a745449e..c8f2585ae2b 100644 --- a/libglusterfs/src/options.c +++ b/libglusterfs/src/options.c @@ -183,13 +183,13 @@ xlator_option_validate_bool (xlator_t *xl, const char *key, const char *value, { int ret = -1; char errstr[256]; - gf_boolean_t bool; + gf_boolean_t is_valid; /* Check if the value is one of '0|1|on|off|no|yes|true|false|enable|disable' */ - if (gf_string2boolean (value, &bool) != 0) { + if (gf_string2boolean (value, &is_valid) != 0) { snprintf (errstr, 256, "option %s %s: '%s' is not a valid boolean value", key, value, value); -- cgit