From 1c293d7818bd5a8d8138cab32bf4a76e8a07bfe3 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Tue, 27 Feb 2024 10:57:15 -0500 Subject: [PATCH] use posix basename to fix build on musl glibc provides a nonstandard basename implementation, this can be overriden and posix basename can be used by includeing libgen.h, however musl only has posix basename, and must always include libgen.h In this particular case, it doesn't appear that using the posix version of basename will cause any issues, as it is simply being used to match a hardcoded config file name. --- daemon/gamemode-config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/gamemode-config.c b/daemon/gamemode-config.c index 92f5406..a63459c 100644 --- a/daemon/gamemode-config.c +++ b/daemon/gamemode-config.c @@ -41,6 +41,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include +#include #include #include #include