aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index b38d8812..b7a7c794 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -126,6 +126,12 @@ int utimensat(int fd, const char *path, const struct timespec times[2], int flag
#endif
+#ifdef __MUSL__
+#include <unistd.h>
+// Without this "rm -r dir" fails with "is directory".
+#define faccessat(A, B, C, D) faccessat(A, B, C, 0)
+#endif
+
// Work out how to do endianness
#ifndef __APPLE__