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
/
rmdir.c
diff --git
a/src/unistd/rmdir.c
b/src/unistd/rmdir.c
index dfe1605d05173460c395e97eb7968da6a4698997..6825ffc8359a557790d278c8827061b9ed18564a 100644
(file)
--- a/
src/unistd/rmdir.c
+++ b/
src/unistd/rmdir.c
@@
-1,7
+1,12
@@
#include <unistd.h>
+#include <fcntl.h>
#include "syscall.h"
int rmdir(const char *path)
{
+#ifdef SYS_rmdir
return syscall(SYS_rmdir, path);
+#else
+ return syscall(SYS_unlinkat, AT_FDCWD, path, AT_REMOVEDIR);
+#endif
}