pciutils: fix compilation with GCC14
authorRosen Penev <[email protected]>
Thu, 16 May 2024 03:17:39 +0000 (20:17 -0700)
committerRosen Penev <[email protected]>
Thu, 30 May 2024 01:48:39 +0000 (18:48 -0700)
Missing header.

Signed-off-by: Rosen Penev <[email protected]>
utils/pciutils/Makefile
utils/pciutils/patches/110-gcc14.patch [new file with mode: 0644]

index 8ba77aa33b8be9ada422469c3ab0ec39519716e1..7a86c6ad9943447b8414d84aae17ec68c5cf5e16 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pciutils
 PKG_VERSION:=3.12.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
diff --git a/utils/pciutils/patches/110-gcc14.patch b/utils/pciutils/patches/110-gcc14.patch
new file mode 100644 (file)
index 0000000..98aec76
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/lib/sysfs.c
++++ b/lib/sysfs.c
+@@ -20,6 +20,7 @@
+ #include <dirent.h>
+ #include <fcntl.h>
+ #include <sys/types.h>
++#include <libgen.h>
+ #include "internal.h"