summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/xlator.c
diff options
context:
space:
mode:
authornoah williamsson <noah.williamsson@gmail.com>2010-09-27 07:47:11 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-10-26 22:56:06 -0700
commitc9c411b48aa0477cd44c18cbdf83d14389d27221 (patch)
tree5dd1db5821efb5ac82cd87007f9a7bdfa3a20dfb /libglusterfs/src/xlator.c
parent7ca61c1082b6c7554ea7b615ca3f2d3c8ab4b090 (diff)
OS X: fnctl() flag FNM_EXTMATCH is not supported under Mac OS X
Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'libglusterfs/src/xlator.c')
-rw-r--r--libglusterfs/src/xlator.c5
1 files changed, 5 insertions, 0 deletions
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;
}