]> git.pld-linux.org Git - packages/busybox.git/blob - busybox-pivot_root.patch
- add initial support for amd64
[packages/busybox.git] / busybox-pivot_root.patch
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
4 @@ -29,6 +29,21 @@
5  #include <sys/syscall.h>
6  #include "libbb.h"
7  
8 +#ifndef __NR_pivot_root
9 +# warning "Guessing pivot_root() syscall number"
10 +# ifdef __i386__
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
18 +# else
19 +#  error "Get kernel-2.4 headers!"
20 +# endif
21 +#endif
22 +
23  int sysfs( int option, unsigned int fs_index, char * buf)
24  {
25         return(syscall(__NR_sysfs, option, fs_index, buf));
This page took 0.047919 seconds and 3 git commands to generate.