Skip to content

Commit b4b7264

Browse files
DennisbonkeADKaster
authored andcommitted
AK: Add support for mlibc in LexicalPath
1 parent 939374a commit b4b7264

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AK/LexicalPath.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
#include <AK/String.h>
1111
#include <AK/Vector.h>
1212

13+
// On Linux distros that use mlibc `basename` is defined as a macro that expands to `__mlibc_gnu_basename` or `__mlibc_gnu_basename_c`, so we undefine it.
14+
#if defined(AK_OS_LINUX) && defined(basename)
15+
# undef basename
16+
#endif
17+
1318
namespace AK {
1419

1520
class LexicalPath {

0 commit comments

Comments
 (0)