From c9c411b48aa0477cd44c18cbdf83d14389d27221 Mon Sep 17 00:00:00 2001 From: noah williamsson Date: Mon, 27 Sep 2010 07:47:11 +0000 Subject: OS X: fnctl() flag FNM_EXTMATCH is not supported under Mac OS X Signed-off-by: Noah Williamsson Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- libglusterfs/src/xlator.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index d5883f31628..dcdf40f7120 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -375,8 +375,13 @@ _volume_option_value_validate (xlator_t *xl, for (i = 0; (i < ZR_OPTION_MAX_ARRAY_SIZE) && opt->value[i]; i++) { +#ifdef GF_DARWIN_HOST_OS + if (fnmatch (opt->value[i], pair->value->data, + 0) == 0) { +#else if (fnmatch (opt->value[i], pair->value->data, FNM_EXTMATCH) == 0) { +#endif ret = 0; break; } -- cgit