Trying to fix issue #231 musl
parent
8f22ebae44
commit
01233e5f1f
@ -0,0 +1,12 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "syscall.h"
|
||||
|
||||
ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize)
|
||||
{
|
||||
#ifdef SYS_readlink
|
||||
return syscall(SYS_readlink, path, buf, bufsize);
|
||||
#else
|
||||
return syscall(SYS_readlinkat, AT_FDCWD, path, buf, bufsize);
|
||||
#endif
|
||||
}
|
Loading…
Reference in New Issue