mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
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>
This commit is contained in:
parent
136890c672
commit
6d659cd7fd
@ -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 */
|
Loading…
Reference in New Issue
Block a user