[Freeswitch-trunk] [commit] r6289 - freeswitch/trunk/src/include

Freeswitch SVN mikej at freeswitch.org
Thu Nov 15 16:08:58 EST 2007


Author: mikej
Date: Thu Nov 15 16:08:58 2007
New Revision: 6289

Modified:
   freeswitch/trunk/src/include/SimpleGlob.h

Log:
GLOB_TILDE is not allways supported

Modified: freeswitch/trunk/src/include/SimpleGlob.h
==============================================================================
--- freeswitch/trunk/src/include/SimpleGlob.h	(original)
+++ freeswitch/trunk/src/include/SimpleGlob.h	Thu Nov 15 16:08:58 2007
@@ -366,7 +366,9 @@
     int FindFirstFileS(const char * a_pszFileSpec, unsigned int a_uiFlags) {
         int nFlags = GLOB_MARK | GLOB_NOSORT;
         if (a_uiFlags & SG_GLOB_ERR)    nFlags |= GLOB_ERR;
+#ifdef GLOB_TILDE
         if (a_uiFlags & SG_GLOB_TILDE)  nFlags |= GLOB_TILDE;
+#endif
         int rc = glob(a_pszFileSpec, nFlags, NULL, &m_glob);
         if (rc == GLOB_NOSPACE) return SG_ERR_MEMORY;
         if (rc == GLOB_ABORTED) return SG_ERR_FAILURE;



More information about the Freeswitch-trunk mailing list