diff options
Diffstat (limited to 'src/stat/mknod.c')
-rw-r--r-- | src/stat/mknod.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stat/mknod.c b/src/stat/mknod.c index c3196571..beebd84e 100644 --- a/src/stat/mknod.c +++ b/src/stat/mknod.c @@ -1,7 +1,12 @@ #include <sys/stat.h> +#include <fcntl.h> #include "syscall.h" int mknod(const char *path, mode_t mode, dev_t dev) { +#ifdef SYS_mknod return syscall(SYS_mknod, path, mode, dev); +#else + return syscall(SYS_mknodat, AT_FDCWD, path, mode, dev); +#endif } |