X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flinux%2Fchroot.c;h=0e69f145dee37cbdc865f6cf6e222a1658d58cdc;hb=c00cdefa1da17f60b3179704528582ef320e61b8;hp=b5af62dcf3b8fe7241baae47c83ea28f5ce43efb;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/linux/chroot.c b/src/linux/chroot.c index b5af62dc..0e69f145 100644 --- a/src/linux/chroot.c +++ b/src/linux/chroot.c @@ -1,8 +1,8 @@ +#define _GNU_SOURCE #include -#define SYSCALL_STANDALONE #include "syscall.h" int chroot(const char *path) { - return syscall1(__NR_chroot, (long)path); + return syscall(SYS_chroot, path); }