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(, name.c_str(), FNM_EXTMATCH))
int flags = 0;
/* musl-libc doesnt support this flag yet */
flags |= FNM_EXTMATCH;
if (!fnmatch(, name.c_str(), flags))
Supports Markdown
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