summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/sbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh/sbrk.c')
-rw-r--r--libc/sysdeps/linux/sh/sbrk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sh/sbrk.c b/libc/sysdeps/linux/sh/sbrk.c
index 3dd5a46f0..c39d60063 100644
--- a/libc/sysdeps/linux/sh/sbrk.c
+++ b/libc/sysdeps/linux/sh/sbrk.c
@@ -1,8 +1,8 @@
/* From libc-5.3.12 */
+#include <errno.h>
#include <unistd.h>
#include <sys/syscall.h>
-#include <errno.h>
extern void * ___brk_addr;
@@ -14,7 +14,7 @@ sbrk(intptr_t increment)
{
if (__init_brk () == 0)
{
- void * tmp = ___brk_addr+increment;
+ char * tmp = (char*)___brk_addr+increment;
___brk_addr = _brk(tmp);
if (___brk_addr == tmp)
return tmp-increment;