Enabled sbrk() again, but only for actual increments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6023deb2cd
commit
0cd4c8ae6c
@ -15,8 +15,12 @@ extern void *(*sbrk_hook)(long);
|
||||
void *
|
||||
sbrk(long increment)
|
||||
{
|
||||
// TODO: disabled for now - let's GDB crash, so it obviously doesn't work yet
|
||||
// if (sbrk_hook)
|
||||
// return (*sbrk_hook)(increment);
|
||||
// TODO: we only support extending the heap for now using this method
|
||||
if (increment <= 0)
|
||||
return NULL;
|
||||
|
||||
if (sbrk_hook)
|
||||
return (*sbrk_hook)(increment);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user