From 192b905a0599f64c56db7d370a188d93823b0011 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 27 Jan 2014 11:03:29 +0000 Subject: [PATCH] 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 --- src/Path.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Path.cpp b/src/Path.cpp index 94657e240..6a821991f 100644 --- a/src/Path.cpp +++ b/src/Path.cpp @@ -38,6 +38,15 @@ #include #include +/* 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) {