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:
@@ -15,8 +15,12 @@ extern void *(*sbrk_hook)(long);
|
|||||||
void *
|
void *
|
||||||
sbrk(long increment)
|
sbrk(long increment)
|
||||||
{
|
{
|
||||||
// TODO: disabled for now - let's GDB crash, so it obviously doesn't work yet
|
// TODO: we only support extending the heap for now using this method
|
||||||
// if (sbrk_hook)
|
if (increment <= 0)
|
||||||
// return (*sbrk_hook)(increment);
|
return NULL;
|
||||||
|
|
||||||
|
if (sbrk_hook)
|
||||||
|
return (*sbrk_hook)(increment);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user