X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fmodule_syscalls.c;h=cf922f8eb8ca3b930e64e26b92f3515ffc8d693b;hb=8ae4cab4a85eea297a0b8ea9aa65c3c23b0a664b;hp=36b75fb934a40015ca9b51cb049ba85dfa941357;hpb=a2949aa217f255341a0507b6e340285bdea1001f;p=oweals%2Fbusybox.git diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c index 36b75fb93..cf922f8eb 100644 --- a/libbb/module_syscalls.c +++ b/libbb/module_syscalls.c @@ -2,8 +2,8 @@ /* * some system calls possibly missing from libc * - * Copyright (C) 1999,2000,2001 by Lineo, inc. - * Written by Erik Andersen , + * Copyright (C) 1999,2000 by Lineo, inc. and Erik Andersen + * Copyright (C) 1999,2000,2001 by Erik Andersen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,13 +28,14 @@ _syscall* defined. */ #define __LIBRARY__ #include -#ifndef __UCLIBC__ +#if __GNU_LIBRARY__ < 5 +/* This is needed for libc5 */ #include #endif #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);