projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove another invalid skip of locking in ungetwc
[oweals/musl.git]
/
src
/
unistd
/
unlink.c
diff --git
a/src/unistd/unlink.c
b/src/unistd/unlink.c
index bdb37bea02d7b5f4336d3212b7eb23db9e9dac25..c40c28d50be4e59951afb14dea3436f768e01cc1 100644
(file)
--- a/
src/unistd/unlink.c
+++ b/
src/unistd/unlink.c
@@
-1,7
+1,12
@@
#include <unistd.h>
+#include <fcntl.h>
#include "syscall.h"
int unlink(const char *path)
{
+#ifdef SYS_unlink
return syscall(SYS_unlink, path);
+#else
+ return syscall(SYS_unlinkat, AT_FDCWD, path, 0);
+#endif
}