[xiph-commits] r18905 - icecast/trunk/icecast/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Tue Apr 2 19:04:38 PDT 2013


Author: ph3-der-loewe
Date: 2013-04-02 19:04:38 -0700 (Tue, 02 Apr 2013)
New Revision: 18905

Modified:
   icecast/trunk/icecast/src/cfgfile.c
Log:
avoid fnmatch() on _WIN32 and fall back to strcmp(). Seems that MinGW does half-implement fnmatch()...

Modified: icecast/trunk/icecast/src/cfgfile.c
===================================================================
--- icecast/trunk/icecast/src/cfgfile.c	2013-04-03 00:46:55 UTC (rev 18904)
+++ icecast/trunk/icecast/src/cfgfile.c	2013-04-03 02:04:38 UTC (rev 18905)
@@ -20,7 +20,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifndef _WIN32
 #include <fnmatch.h>
+#endif
 #include <libxml/xmlmemory.h>
 #include <libxml/parser.h>
 
@@ -1243,8 +1245,13 @@
 	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 */



More information about the commits mailing list