Accomodate older glibc, which also lacks the module syscalls
authorEric Andersen <andersen@codepoet.org>
Wed, 24 Oct 2001 00:44:11 +0000 (00:44 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 24 Oct 2001 00:44:11 +0000 (00:44 -0000)
libbb/module_syscalls.c

index 36b75fb934a40015ca9b51cb049ba85dfa941357..8326f15ad12bc277ca809f932751034b0dd37221 100644 (file)
@@ -34,7 +34,7 @@
 #include "libbb.h"
 
 
-#if __GNU_LIBRARY__ < 5
+#if __GNU_LIBRARY__ < 5 || ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
 /* These syscalls are not included as part of libc5 */
 _syscall1(int, delete_module, const char *, name);
 _syscall1(int, get_kernel_syms, __ptr_t, ks);