void-packages/srcpkgs/iwd/patches/musl.patch
oreo639 660e6ccff8 iwd: fix basename on musl
musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
2024-01-28 15:37:37 -08:00

13 lines
288 B
Diff

Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h.
diff -rup src/wiphy.c.orig src/wiphy.c
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -33,6 +33,7 @@
#include <unistd.h>
#include <string.h>
#include <limits.h>
+#include <libgen.h>
#include <ell/ell.h>