1 diff -urN busybox-1.00-pre2.org/libbb/syscalls.c busybox-1.00-pre2/libbb/syscalls.c
2 --- busybox-1.00-pre2.org/libbb/syscalls.c 2003-08-02 23:31:11.000000000 +0200
3 +++ busybox-1.00-pre2/libbb/syscalls.c 2003-08-02 23:38:37.000000000 +0200
5 #include <sys/syscall.h>
8 +#ifndef __NR_pivot_root
9 +# warning "Guessing pivot_root() syscall number"
11 +# define __NR_pivot_root 217
12 +# elif defined(__alpha__)
13 +# define __NR_pivot_root 374
14 +# elif defined(__sparc__) || defined(__sparc64__)
15 +# define __NR_pivot_root 146
16 +# elif defined(__powerpc__)
17 +# define __NR_pivot_root 203
19 +# error "Get kernel-2.4 headers!"
23 int sysfs( int option, unsigned int fs_index, char * buf)
25 return(syscall(__NR_sysfs, option, fs_index, buf));