t/io_uring: include libgen.h
authorMiko Larsson <mikoxyzzz@gmail.com>
Thu, 22 Feb 2024 11:44:54 +0000 (12:44 +0100)
committerMiko Larsson <mikoxyzzz@gmail.com>
Thu, 22 Feb 2024 11:44:54 +0000 (12:44 +0100)
This fixes the build with musl + clang >=15; musl doesn't declare
basename() anywhere else, and clang >=15 doesn't allow implicit
declarations.

Fixes: 4b9e13dc27fb (t/io_uring: support NUMA placement)
Signed-off-by: Miko Larsson <mikoxyzzz@gmail.com>
t/io_uring.c

index 46b153dcbefc32ee778f75023d0cb69cd680e216..6fc40cbb671ded906e132bbda9ffc689f52442fb 100644 (file)
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <pthread.h>
 #include <sched.h>
+#include <libgen.h>
 
 #include "../arch/arch.h"
 #include "../os/os.h"