summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2023-12-09 12:58:46 +0000
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-09 23:25:00 -0500
commit2d5118e01fddf09a9f9b9713d857b70515cc9b4b (patch)
treed38441fe3837133f9b83d58da6f5988641a24f85
parent6b674b8817d9016a5dc2caafeead9eee717be503 (diff)
bcachefs-tools: Use basename(3) from <libgen.h>
Although glibc also provides basename(3) from <string.h>, this is non-standard whereas it is available from <libgen.h> portably. Signed-off-by: Chris Webb <chris@arachsys.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--libbcachefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbcachefs.c b/libbcachefs.c
index 82f131cf..a3b9c30c 100644
--- a/libbcachefs.c
+++ b/libbcachefs.c
@@ -2,6 +2,7 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#include <libgen.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>