From c9c2b42229bf74a7d482b09792562a15c6a690a7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 19 Jul 2011 07:23:09 +0000 Subject: [PATCH] * libc/reent/sbrkr.c: Define _sbrk_r independently of the definition of MALLOC_PROVIDED. --- newlib/ChangeLog | 5 +++++ newlib/libc/reent/sbrkr.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 383b42aa1..56285cc93 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2011-07-19 Matt Johnson + + * libc/reent/sbrkr.c: Define _sbrk_r independently of the definition + of MALLOC_PROVIDED. + 2011-07-15 Yufeng Zhang * libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type diff --git a/newlib/libc/reent/sbrkr.c b/newlib/libc/reent/sbrkr.c index b963307b6..44e42b57f 100644 --- a/newlib/libc/reent/sbrkr.c +++ b/newlib/libc/reent/sbrkr.c @@ -13,9 +13,7 @@ #endif #endif -/* If MALLOC_PROVIDED is defined, we don't need this function. */ - -#if defined (REENTRANT_SYSCALLS_PROVIDED) || defined (MALLOC_PROVIDED) +#if defined (REENTRANT_SYSCALLS_PROVIDED) int _dummy_sbrk_syscalls = 1; -- 2.43.5