projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove long-unused struct __timer from pthread_impl.h
[musl]
/
src
/
stat
/
mknod.c
diff --git
a/src/stat/mknod.c
b/src/stat/mknod.c
index
c319657
..
beebd84
100644
(file)
--- a/
src/stat/mknod.c
+++ b/
src/stat/mknod.c
@@
-1,7
+1,12
@@
#include <sys/stat.h>
#include <sys/stat.h>
+#include <fcntl.h>
#include "syscall.h"
int mknod(const char *path, mode_t mode, dev_t dev)
{
#include "syscall.h"
int mknod(const char *path, mode_t mode, dev_t dev)
{
+#ifdef SYS_mknod
return syscall(SYS_mknod, path, mode, dev);
return syscall(SYS_mknod, path, mode, dev);
+#else
+ return syscall(SYS_mknodat, AT_FDCWD, path, mode, dev);
+#endif
}
}