X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fmkdir.c;h=32625b7de32768dc45916b76c0d063af89e1203c;hb=f296be74d5ab94f6ccac26e129d96e08f1c20538;hp=770e1cccea8896c966f39fa77d191b8d3b1db5f7;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stat/mkdir.c b/src/stat/mkdir.c index 770e1ccc..32625b7d 100644 --- a/src/stat/mkdir.c +++ b/src/stat/mkdir.c @@ -1,7 +1,12 @@ #include +#include #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 }