GLOB_TILDE is not allways supported
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6289 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
960a2e2606
commit
1af7f81a37
|
@ -366,7 +366,9 @@ struct SimpleGlobBase
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue