diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-29 03:52:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-29 03:52:19 +0100 |
commit | 80422eacf48ea819f1aeefc7a809533aa63fb85a (patch) | |
tree | 9f6b06247fc71d25dc56c5140d56d7be0ae379a7 /net-libs/xdp-tools/files | |
parent | c55c2cf7b5e5e8ce7f21c53ee7996c2ea918279d (diff) |
gentoo auto-resync : 29:03:2023 - 03:52:19
Diffstat (limited to 'net-libs/xdp-tools/files')
-rw-r--r-- | net-libs/xdp-tools/files/1.3.1-musl.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-libs/xdp-tools/files/1.3.1-musl.patch b/net-libs/xdp-tools/files/1.3.1-musl.patch new file mode 100644 index 000000000000..e3238871b262 --- /dev/null +++ b/net-libs/xdp-tools/files/1.3.1-musl.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/836708 +https://github.com/xdp-project/xdp-tools/pull/309 + +From c9956abbfbd238bd2eb98c67ea002bfce29063a4 Mon Sep 17 00:00:00 2001 +From: Stijn Tintel <stijn@linux-ipv6.be> +Date: Wed, 29 Mar 2023 04:25:06 +0300 +Subject: [PATCH] libxdp: fix build on musl + +In musl, PATH_MAX is defined in limits.h. Include it in libxdp.c to fix +building systems using musl libc. + +libxdp.c: In function 'find_bpffs': +libxdp.c:406:33: error: 'PATH_MAX' undeclared (first use in this function) + 406 | static char bpf_wrk_dir[PATH_MAX]; + | ^~~~~~~~ + +Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> +--- a/lib/libxdp/libxdp.c ++++ b/lib/libxdp/libxdp.c +@@ -22,6 +22,7 @@ + #include <fcntl.h> + #include <inttypes.h> + #include <dirent.h> ++#include <limits.h> + + #include <linux/err.h> /* ERR_PTR */ + #include <linux/if_link.h> + |