avoid linear-time if/else special cases in sysconf
[musl] / src / linux / chroot.c
index 81363a6..0e69f14 100644 (file)
@@ -1,7 +1,8 @@
+#define _GNU_SOURCE
 #include <unistd.h>
 #include "syscall.h"
 
 int chroot(const char *path)
 {
-       return syscall1(__NR_chroot, (long)path);
+       return syscall(SYS_chroot, path);
 }