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.
This commit is contained in:
oreo639 2024-01-26 01:22:09 -08:00
parent 984d973746
commit 660e6ccff8
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
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>

View File

@ -1,7 +1,7 @@
# Template file for 'iwd'
pkgname=iwd
version=2.13
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-systemd-service --enable-pie
--enable-dbus-policy --enable-wired"