From d03dd60840f0a08464d5266539ad356aefe24b03 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:26:14 +0100 Subject: Imported from util-linux-2.12a tarball. --- mount/pivot_root.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'mount/pivot_root.c') diff --git a/mount/pivot_root.c b/mount/pivot_root.c index a844b480e..ba2dbbed0 100644 --- a/mount/pivot_root.c +++ b/mount/pivot_root.c @@ -3,14 +3,17 @@ /* Written 2000 by Werner Almesberger */ #include -#include /* needed for below */ +#include +#include -#ifdef __ia64__ -# include -# define pivot_root(new_root,put_old) syscall(SYS_pivot_root,new_root,put_old) -#else -# include +#define pivot_root(new_root,put_old) syscall(SYS_pivot_root,new_root,put_old) +#if 0 +/* + * With kernelheaders 2.3.41 or later, and ancient libc, try the following. + */ +#include +#include static _syscall2(int,pivot_root,const char *,new_root,const char *,put_old) #endif -- cgit v1.2.3-55-g7522