From 65f451d083e946cdee6278ebe8ffbc4705d9328b Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Thu, 2 Oct 2008 02:58:01 +0000 Subject: * gmalloc.c (__sbrk): Also define for uClibc. * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition for uClibc. --- src/gmalloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gmalloc.c') diff --git a/src/gmalloc.c b/src/gmalloc.c index 1cf9a8ee9b..f1be37ba34 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -1706,17 +1706,17 @@ MA 02110-1301, USA. */ #include #endif -#ifndef __GNU_LIBRARY__ +/* uClibc defines __GNU_LIBRARY__, but it is not completely + compatible. */ +#if !defined(__GNU_LIBRARY__) || defined(__UCLIBC__) #define __sbrk sbrk -#endif - -#ifdef __GNU_LIBRARY__ +#else /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */ /* It is best not to declare this and cast its result on foreign operating systems with potentially hostile include files. */ #include extern __ptr_t __sbrk PP ((ptrdiff_t increment)); -#endif +#endif /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */ #ifndef NULL #define NULL 0 -- cgit v1.2.3