summaryrefslogtreecommitdiff
path: root/libbb/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen2003-07-22 08:56:55 +0000
committerEric Andersen2003-07-22 08:56:55 +0000
commit85e5e72bc1acd9d58c11bde6e14c8270cd9f169f (patch)
tree9971c6951256dd0bba5ff2a7db08ed6f65ef218d /libbb/syscalls.c
parent0a14c9f924eaf6a64e78959a190d187d646b3c0c (diff)
downloadbusybox-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.zip
busybox-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.gz
Remove remaining libc5 support code
Diffstat (limited to 'libbb/syscalls.c')
-rw-r--r--libbb/syscalls.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libbb/syscalls.c b/libbb/syscalls.c
index ee58d36..8ceb356 100644
--- a/libbb/syscalls.c
+++ b/libbb/syscalls.c
@@ -27,10 +27,6 @@
_syscall* defined. */
#define __LIBRARY__
#include <sys/syscall.h>
-#if __GNU_LIBRARY__ < 5
-/* This is needed for libc5 */
-#include <asm/unistd.h>
-#endif
#include "libbb.h"
int sysfs( int option, unsigned int fs_index, char * buf)
@@ -59,9 +55,9 @@ int pivot_root(const char * new_root,const char * put_old)
-#if __GNU_LIBRARY__ < 5 || ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
+/* These syscalls are not included in ancient glibc versions */
+#if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
-/* These syscalls are not included as part of libc5 */
int bdflush(int func, int data)
{
return(syscall(__NR_bdflush, func, data));
@@ -96,7 +92,7 @@ int umount2(const char * special_file, int flags)
}
-#endif /* __GNU_LIBRARY__ < 5 */
+#endif
/* END CODE */