--- libbb/syscalls.c +++ libbb/syscalls.c @@ -58,11 +58,12 @@ /* These syscalls are not included in ancient glibc versions */ #if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) +#ifndef __x86_64__ int bdflush(int func, int data) { return(syscall(__NR_bdflush, func, data)); } - +#endif #ifndef __alpha__ # define __NR_klogctl __NR_syslog int klogctl(int type, char *b, int len) @@ -74,7 +75,9 @@ int umount2(const char * special_file, int flags) { -#ifndef __NR_pivot_root +#ifdef __ia64__ + return(syscall(__NR_umount, special_file, flags)); +#elif !defined __NR_umount2 #warning This kernel does not support the umount2 syscall #warning -> The umount2 system call is being stubbed out... /* BusyBox was compiled against a kernel that did not support