From 806c74fe19e7c316fa0715ad82d598c8e216fb13 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 12 Mar 2002 00:35:40 +0000 Subject: [PATCH] Cleanup a libc5 compatibility hack --- libbb/module_syscalls.c | 3 ++- libbb/syscalls.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libbb/module_syscalls.c b/libbb/module_syscalls.c index 3b60649a8..cf922f8eb 100644 --- a/libbb/module_syscalls.c +++ b/libbb/module_syscalls.c @@ -28,7 +28,8 @@ _syscall* defined. */ #define __LIBRARY__ #include -#ifndef __UCLIBC__ +#if __GNU_LIBRARY__ < 5 +/* This is needed for libc5 */ #include #endif #include "libbb.h" diff --git a/libbb/syscalls.c b/libbb/syscalls.c index 383eb6ab9..76b77f816 100644 --- a/libbb/syscalls.c +++ b/libbb/syscalls.c @@ -27,10 +27,9 @@ /* Kernel headers before 2.1.mumble need this on the Alpha to get _syscall* defined. */ #define __LIBRARY__ - - #include -#ifndef __UCLIBC__ +#if __GNU_LIBRARY__ < 5 +/* This is needed for libc5 */ #include #endif #include "libbb.h"