aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index f6f76729..bb1f5aee 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -141,6 +141,11 @@ int utimensat(int fd, const char *path, const struct timespec times[2], int flag
#endif
+#ifndef __GLIBC__
+// POSIX basename.
+#include <libgen.h>
+#endif
+
#ifdef __MUSL__
#include <unistd.h>
// Without this "rm -r dir" fails with "is directory".