Fix build with musl libc

GLOB_BRACE and GLOB_TILDE is not defined in posix and thus not implemented
in musl libc.

We fix this by defining it to 0 if its undefined.

fixes issue #1503
This commit is contained in:
Natanael Copa 2014-01-27 11:03:29 +00:00 committed by Paul Beckingham
parent 72aa8df029
commit 192b905a05

View file

@ -38,6 +38,15 @@
#include <Directory.h>
#include <Path.h>
/* fixes build with musl libc */
#ifndef GLOB_TILDE
#define GLOB_TILDE 0
#endif
#ifndef GLOB_BRACE
#define GLOB_BRACE 0
#endif
////////////////////////////////////////////////////////////////////////////////
std::ostream& operator<< (std::ostream& out, const Path& path)
{