diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-22 08:56:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-22 08:56:55 +0000 |
commit | 85e5e72bc1acd9d58c11bde6e14c8270cd9f169f (patch) | |
tree | 9971c6951256dd0bba5ff2a7db08ed6f65ef218d /libbb/module_syscalls.c | |
parent | 0a14c9f924eaf6a64e78959a190d187d646b3c0c (diff) | |
download | busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.gz busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.bz2 busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.zip |
Remove remaining libc5 support code
Diffstat (limited to 'libbb/module_syscalls.c')
-rw-r--r-- | libbb/module_syscalls.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c index 6b6ebed06..cb9258af2 100644 --- a/libbb/module_syscalls.c +++ b/libbb/module_syscalls.c | |||
@@ -27,15 +27,11 @@ | |||
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 | ||
36 | 32 | ||
37 | #if __GNU_LIBRARY__ < 5 || ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) | 33 | /* These syscalls are not included in very old glibc versions */ |
38 | /* These syscalls are not included as part of libc5 */ | 34 | #if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) |
39 | int delete_module(const char *name) | 35 | int delete_module(const char *name) |
40 | { | 36 | { |
41 | return(syscall(__NR_delete_module, name)); | 37 | return(syscall(__NR_delete_module, name)); |
@@ -79,7 +75,7 @@ unsigned long create_module(const char *name, size_t size) | |||
79 | return ret; | 75 | return ret; |
80 | } | 76 | } |
81 | 77 | ||
82 | #endif /* __GNU_LIBRARY__ < 5 */ | 78 | #endif |
83 | 79 | ||
84 | 80 | ||
85 | /* END CODE */ | 81 | /* END CODE */ |