aboutsummaryrefslogtreecommitdiff
path: root/libbb/syscalls.c
diff options
context:
space:
mode:
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 ee58d3674..8ceb35695 100644
--- a/libbb/syscalls.c
+++ b/libbb/syscalls.c
@@ -27,10 +27,6 @@
27 _syscall* defined. */ 27 _syscall* defined. */
28#define __LIBRARY__ 28#define __LIBRARY__
29#include <sys/syscall.h> 29#include <sys/syscall.h>
30#if __GNU_LIBRARY__ < 5
31/* This is needed for libc5 */
32#include <asm/unistd.h>
33#endif
34#include "libbb.h" 30#include "libbb.h"
35 31
36int sysfs( int option, unsigned int fs_index, char * buf) 32int sysfs( int option, unsigned int fs_index, char * buf)
@@ -59,9 +55,9 @@ int pivot_root(const char * new_root,const char * put_old)
59 55
60 56
61 57
62#if __GNU_LIBRARY__ < 5 || ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) 58/* These syscalls are not included in ancient glibc versions */
59#if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
63 60
64/* These syscalls are not included as part of libc5 */
65int bdflush(int func, int data) 61int bdflush(int func, int data)
66{ 62{
67 return(syscall(__NR_bdflush, func, data)); 63 return(syscall(__NR_bdflush, func, data));
@@ -96,7 +92,7 @@ int umount2(const char * special_file, int flags)
96} 92}
97 93
98 94
99#endif /* __GNU_LIBRARY__ < 5 */ 95#endif
100 96
101 97
102/* END CODE */ 98/* END CODE */