wireless_tools: fix build for gcc14 and musl
This commit is contained in:
14
srcpkgs/wireless_tools/patches/basename.patch
Normal file
14
srcpkgs/wireless_tools/patches/basename.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
Include missing basename declaration on musl
|
||||
|
||||
diff -rup ifrename.c.orig ifrename.c
|
||||
--- a/ifrename.c
|
||||
+++ b/ifrename.c
|
||||
@@ -45,6 +45,7 @@
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
+#include <libgen.h> /* basename() */
|
||||
#include <getopt.h> /* getopt_long() */
|
||||
#include <linux/sockios.h> /* SIOCSIFNAME */
|
||||
#include <fnmatch.h> /* fnmatch() */
|
||||
|
||||
Reference in New Issue
Block a user