[PATCH] ipset: Fix implicit declaration of function basename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Pagano <mpagano@xxxxxxxxxx>

basename(3) is defined in libgen.h in MUSL. 
Include libgen.h where basename(3) is used.

Signed-off-by: Mike Pagano <mpagano@xxxxxxxxxx>
---
 src/ipset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ipset.c b/src/ipset.c
index 162f477..d7733bf 100644
--- a/src/ipset.c
+++ b/src/ipset.c
@@ -15,6 +15,7 @@
 #include <config.h>
 #include <libipset/ipset.h>		/* ipset library */
 #include <libipset/xlate.h>		/* translate to nftables */
+#include <libgen.h>
 
 int
 main(int argc, char *argv[])
-- 
2.46.0





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux