Build Error

- Fixed build error on Ubuntu caused by using a Darwin-specific struct
  member.
This commit is contained in:
Paul Beckingham 2010-01-10 01:32:28 -05:00
parent f435eeed7a
commit 2b71317e09

View file

@ -187,7 +187,7 @@ std::vector <std::string> Path::glob (const std::string& pattern)
glob_t g;
if (!::glob (pattern.c_str (), GLOB_ERR | GLOB_BRACE | GLOB_TILDE, NULL, &g))
for (int i = 0; i < g.gl_matchc; ++i)
for (int i = 0; i < (int) g.gl_pathc; ++i)
results.push_back (g.gl_pathv[i]);
globfree (&g);