projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64
[musl]
/
src
/
stat
/
mkdir.c
diff --git
a/src/stat/mkdir.c
b/src/stat/mkdir.c
index
770e1cc
..
32625b7
100644
(file)
--- a/
src/stat/mkdir.c
+++ b/
src/stat/mkdir.c
@@
-1,7
+1,12
@@
#include <sys/stat.h>
+#include <fcntl.h>
#include "syscall.h"
int mkdir(const char *path, mode_t mode)
{
+#ifdef SYS_mkdir
return syscall(SYS_mkdir, path, mode);
+#else
+ return syscall(SYS_mkdirat, AT_FDCWD, path, mode);
+#endif
}