Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/gmon.c')
-rw-r--r--winsup/cygwin/gmon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/gmon.c b/winsup/cygwin/gmon.c
index 95a7f430e..048ef0df1 100644
--- a/winsup/cygwin/gmon.c
+++ b/winsup/cygwin/gmon.c
@@ -44,6 +44,7 @@ static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $
#include <gmon.h>
#include <profil.h>
+#include <windows.h>
/* XXX needed? */
//extern char *minbrk __asm ("minbrk");
@@ -61,7 +62,11 @@ void moncontrol __P((int));
static void *
fake_sbrk(int size)
{
- return malloc(size);
+ void *rv = malloc(size);
+ if (rv)
+ return rv;
+ else
+ return (void *) -1;
}
void