diff options
Diffstat (limited to 'libc/sysdeps/linux/frv/brk.c')
-rw-r--r-- | libc/sysdeps/linux/frv/brk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/frv/brk.c b/libc/sysdeps/linux/frv/brk.c index 4f97fb084..2406904a3 100644 --- a/libc/sysdeps/linux/frv/brk.c +++ b/libc/sysdeps/linux/frv/brk.c @@ -4,7 +4,7 @@ #include <unistd.h> #include <sys/syscall.h> -extern void * ___brk_addr; +extern void * __curbrk; extern int __init_brk (void); extern void *_brk(void *ptr); @@ -13,8 +13,8 @@ int brk(void * end_data_seg) { if (__init_brk () == 0) { - ___brk_addr = _brk(end_data_seg); - if (___brk_addr == end_data_seg) + __curbrk = _brk(end_data_seg); + if (__curbrk == end_data_seg) return 0; __set_errno(ENOMEM); } |