From: Christian Brauner Date: Fri, 3 Sep 2021 07:31:50 +0000 (+0200) Subject: syscall_wrapper: fix pivot_root() declaration X-Git-Tag: lxc-5.0.0~92^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ee86fdad6b66b96b75f3df1345422b4e2ca461a;p=thirdparty%2Flxc.git syscall_wrapper: fix pivot_root() declaration Signed-off-by: Christian Brauner --- 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); }