mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
include <libgen.h> for basename
building on clang/musl build fails due to missing symbol:
```
/run/host/home/pepper/dev/ghrepos/FEX/Source/Tools/FEXOfflineCompiler/Main.cpp:321:35: error: use of undeclared identifier 'basename'
321 | auto CommandName = std::string {basename(argv[0])} + " " + (argc > 1 ? argv[1] : "");
| ^~~~~~~~
/run/host/home/pepper/dev/ghrepos/FEX/Source/Tools/FEXOfflineCompiler/Main.cpp:327:43: error: use of undeclared identifier 'basename'
327 | fmt::print("Usage: {} <command>\n\n", basename(argv[0]));
| ^~~~~~~~
```
include missing header.
fixes: #5465
Signed-off-by: Pepper Gray <hello@peppergray.xyz>
This commit is contained in:
1 parent
215658bf29
commit
927c0ce54a
1 file changed
+1
@@ -17,6 +17,7 @@
|
||||
#include <OptionParser.h>
|
||||
|
||||
#include <fmt/printf.h>
|
||||
#include <libgen.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <optional>
|
||||
|
||||
Reference in new issue
Block a user