nsutils: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Thu, 16 May 2024 01:00:18 +0000 (18:00 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 17 May 2024 06:45:10 +0000 (23:45 -0700)
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/nsutils/Makefile
utils/nsutils/patches/010-gcc14.patch [new file with mode: 0644]

index 9720fe9057bc732fb78b3fb3cd6f8edfc86aa8ee..a87517aa0c0c863f337c763fa7e6f3b5db65dd47 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nsutils
 BASE_VERSION:=0.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/rd235/nsutils.git
diff --git a/utils/nsutils/patches/010-gcc14.patch b/utils/nsutils/patches/010-gcc14.patch
new file mode 100644 (file)
index 0000000..49b9f91
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/nslist.c
++++ b/nslist.c
+@@ -25,6 +25,7 @@
+ #include <stdint.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <libgen.h>
+ #include <limits.h>
+ #include <dirent.h>
+ #include <getopt.h>