]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
rdma: add missing header for basename
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 12 Dec 2024 19:21:56 +0000 (11:21 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 12 Dec 2024 23:22:22 +0000 (15:22 -0800)
The function basename prototype is in libgen.h
Fixes build on musl

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.h

index fb037bcf67a38892938078a98976f4f10103c31f..fda0a45cf54aed2af602a5736ead2f346c16dbea 100644 (file)
 #include <string.h>
 #include <errno.h>
 #include <getopt.h>
+#include <time.h>
+#include <libgen.h>
 #include <netinet/in.h>
 #include <libmnl/libmnl.h>
 #include <rdma/rdma_netlink.h>
 #include <rdma/rdma_user_cm.h>
-#include <time.h>
 #include <net/if_arp.h>
 
 #include "list.h"