0002-Fix-implicit-declaration-of-function-basename-in-gcc.patch 744 B

123456789101112131415161718192021222324252627282930
  1. From 482b7362dedc57d0c9783bd83084919ccaa79e77 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Wed, 14 Aug 2024 19:43:44 +0200
  4. Subject: [PATCH] Fix implicit declaration of function basename in gcc-14.x
  5. From Alpine Linux.
  6. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  7. Upstream: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/iproute2/basename.patch?ref_type=heads
  8. ---
  9. rdma/rdma.c | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/rdma/rdma.c b/rdma/rdma.c
  12. index 131c6b2a..1e7db382 100644
  13. --- a/rdma/rdma.c
  14. +++ b/rdma/rdma.c
  15. @@ -8,6 +8,9 @@
  16. #include "version.h"
  17. #include "color.h"
  18. +/* For basename(3) prototype */
  19. +#include <libgen.h>
  20. +
  21. /* Global utils flags */
  22. int json;
  23. --
  24. 2.39.2