summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2024-04-17 12:12:25 +0800
committerChuanhong Guo <gch981213@gmail.com>2024-04-17 12:14:20 +0800
commitc7fb5d4cac7534e63d91bdf5e5ee5b4e5213e488 (patch)
tree11c87844d2010e92eeb3aec8af64a87cc96b7e06 /package
parent3ed8927cf5d7eb78d1427151cfa83bd535634d47 (diff)
downloadopenwrt-c7fb5d4cac7534e63d91bdf5e5ee5b4e5213e488.tar.gz
openwrt-c7fb5d4cac7534e63d91bdf5e5ee5b4e5213e488.tar.bz2
openwrt-c7fb5d4cac7534e63d91bdf5e5ee5b4e5213e488.zip
ipset: include libgen.h for basename
musl dropped the GNU version of basename prototype from string.h in 1.2.5. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/network/utils/ipset/patches/0001-include-libgen.h-for-basename.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/network/utils/ipset/patches/0001-include-libgen.h-for-basename.patch b/package/network/utils/ipset/patches/0001-include-libgen.h-for-basename.patch
new file mode 100644
index 0000000000..fb86bbab15
--- /dev/null
+++ b/package/network/utils/ipset/patches/0001-include-libgen.h-for-basename.patch
@@ -0,0 +1,12 @@
+--- a/src/ipset.c
++++ b/src/ipset.c
+@@ -6,8 +6,8 @@
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+-#define _GNU_SOURCE
+ #include <assert.h> /* assert */
++#include <libgen.h> /* basename */
+ #include <stdio.h> /* fprintf */
+ #include <stdlib.h> /* exit */
+ #include <string.h> /* strcmp */