From f19107adc75b3d34274ad361f1c4f926ccc4338c Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 3 Apr 2013 02:04:38 +0000 Subject: [PATCH] avoid fnmatch() on _WIN32 and fall back to strcmp(). Seems that MinGW does half-implement fnmatch()... svn path=/icecast/trunk/icecast/; revision=18905 --- src/cfgfile.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cfgfile.c b/src/cfgfile.c index f43e8993..6d28d59f 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -20,7 +20,9 @@ #include #include #include +#ifndef _WIN32 #include +#endif #include #include @@ -1243,8 +1245,13 @@ mount_proxy *config_find_mount (ice_config_t *config, const char *mount, mount_t if (mountinfo->mounttype == MOUNT_TYPE_NORMAL && strcmp (mountinfo->mountname, mount) == 0) break; +#ifndef _WIN32 if (fnmatch(mountinfo->mountname, mount, FNM_PATHNAME) == 0) break; +#else + if (strcmp(mountinfo->mountname, mount) == 0) + break; +#endif } /* retry with default mount */