Skip to content

Commit

Permalink
use posix basename to fix build on musl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Daniel Martinez committed Feb 27, 2024
1 parent 8e0a71a commit 7b2e258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/gamemode-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <ini.h>

#include <dirent.h>
#include <libgen.h>
#include <math.h>
#include <pthread.h>
#include <pwd.h>
Expand Down

0 comments on commit 7b2e258

Please sign in to comment.