Commit b2184c86 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

log: fix unsupported flag on musl-libc / alpine

parent df4e5a32
......@@ -77,7 +77,12 @@ Logger Log::get(const std::string &name)
logger->set_pattern(prefix + pattern);
for (auto &expr : expressions) {
if (!fnmatch(expr.name.c_str(), name.c_str(), FNM_EXTMATCH))
int flags = 0;
#ifdef FNM_EXTMATCH
/* musl-libc doesnt support this flag yet */
flags |= FNM_EXTMATCH;
#endif
if (!fnmatch(expr.name.c_str(), name.c_str(), flags))
logger->set_level(expr.level);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment