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 <[email protected]> --- libbcachefs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libbcachefs.c b/libbcachefs.c index 82f131c..a3b9c30 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>
