Replaced Linux syscall macros by libc macros.
User-space programs should use the SYS_*form, as documented in syscall(2). That also adds compatibility to non-Linux systems.
This commit is contained in:
@@ -1003,7 +1003,7 @@ fail:
|
||||
nxt_inline int
|
||||
nxt_pivot_root(const char *new_root, const char *old_root)
|
||||
{
|
||||
return syscall(__NR_pivot_root, new_root, old_root);
|
||||
return syscall(SYS_pivot_root, new_root, old_root);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user