Skip to content

Commit

Permalink
iwd: fix basename on musl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oreo639 committed Jan 28, 2024
1 parent 6223337 commit c3dd053
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions srcpkgs/iwd/patches/musl.patch
Original file line number Diff line number Diff line change
@@ -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>

2 changes: 1 addition & 1 deletion srcpkgs/iwd/template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c3dd053

Please sign in to comment.