aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorDan Nicolaescu2008-10-02 02:58:01 +0000
committerDan Nicolaescu2008-10-02 02:58:01 +0000
commit65f451d083e946cdee6278ebe8ffbc4705d9328b (patch)
treeaffefec9dc375675e65a72761b618878c6c473eb /src/gmalloc.c
parent97f6e1ad87856872182b653d96c555cabee39cdc (diff)
downloademacs-65f451d083e946cdee6278ebe8ffbc4705d9328b.tar.gz
emacs-65f451d083e946cdee6278ebe8ffbc4705d9328b.zip
* gmalloc.c (__sbrk): Also define for uClibc.
* s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition for uClibc.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 1cf9a8ee9b5..f1be37ba348 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -1706,17 +1706,17 @@ MA 02110-1301, USA. */
1706#include <malloc.h> 1706#include <malloc.h>
1707#endif 1707#endif
1708 1708
1709#ifndef __GNU_LIBRARY__ 1709/* uClibc defines __GNU_LIBRARY__, but it is not completely
1710 compatible. */
1711#if !defined(__GNU_LIBRARY__) || defined(__UCLIBC__)
1710#define __sbrk sbrk 1712#define __sbrk sbrk
1711#endif 1713#else /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */
1712
1713#ifdef __GNU_LIBRARY__
1714/* It is best not to declare this and cast its result on foreign operating 1714/* It is best not to declare this and cast its result on foreign operating
1715 systems with potentially hostile include files. */ 1715 systems with potentially hostile include files. */
1716 1716
1717#include <stddef.h> 1717#include <stddef.h>
1718extern __ptr_t __sbrk PP ((ptrdiff_t increment)); 1718extern __ptr_t __sbrk PP ((ptrdiff_t increment));
1719#endif 1719#endif /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */
1720 1720
1721#ifndef NULL 1721#ifndef NULL
1722#define NULL 0 1722#define NULL 0