From: Chuanhong Guo Date: Wed, 17 Apr 2024 04:12:25 +0000 (+0800) Subject: ipset: include libgen.h for basename X-Git-Tag: v24.10.0-rc1~2211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7fb5d4cac7534e63d91bdf5e5ee5b4e5213e488;p=thirdparty%2Fopenwrt.git 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 --- 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 00000000000..fb86bbab155 --- /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 */ ++#include /* basename */ + #include /* fprintf */ + #include /* exit */ + #include /* strcmp */