mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-31 17:03:30 +02:00
Build Error
- Fixed build error on Ubuntu caused by using a Darwin-specific struct member.
This commit is contained in:
parent
f435eeed7a
commit
2b71317e09
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ std::vector <std::string> Path::glob (const std::string& pattern)
|
||||||
|
|
||||||
glob_t g;
|
glob_t g;
|
||||||
if (!::glob (pattern.c_str (), GLOB_ERR | GLOB_BRACE | GLOB_TILDE, NULL, &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]);
|
results.push_back (g.gl_pathv[i]);
|
||||||
|
|
||||||
globfree (&g);
|
globfree (&g);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue