From 4ee86fdad6b66b96b75f3df1345422b4e2ca461a Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 3 Sep 2021 09:31:50 +0200 Subject: [PATCH] syscall_wrapper: fix pivot_root() declaration Signed-off-by: Christian Brauner --- src/lxc/syscall_wrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/syscall_wrappers.h b/src/lxc/syscall_wrappers.h index 7d62b7c5b..b545b0365 100644 --- a/src/lxc/syscall_wrappers.h +++ b/src/lxc/syscall_wrappers.h @@ -67,7 +67,7 @@ extern int memfd_create(const char *name, unsigned int flags); #endif #ifndef HAVE_PIVOT_ROOT -static int pivot_root(const char *new_root, const char *put_old) +static inline int pivot_root(const char *new_root, const char *put_old) { return syscall(__NR_pivot_root, new_root, put_old); } -- 2.47.2