From 1af7f81a370fd7918d1c0a60c4b3f10b273d9339 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 15 Nov 2007 21:08:58 +0000 Subject: [PATCH] GLOB_TILDE is not allways supported git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6289 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/SimpleGlob.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/SimpleGlob.h b/src/include/SimpleGlob.h index 6269efad10..1bc723f0de 100644 --- a/src/include/SimpleGlob.h +++ b/src/include/SimpleGlob.h @@ -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;