fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / syscalls / syssbrk.c
blobde368678e7d4a6b4e514de6cfa0988c8968d34e5
1 /* connector for sbrk */
3 #include <reent.h>
4 #include <unistd.h>
6 extern void *_sbrk_r (struct _reent *, ptrdiff_t);
7 extern void *_sbrk (ptrdiff_t);
9 void *
10 _DEFUN (sbrk, (incr),
11 ptrdiff_t incr)
13 #ifdef REENTRANT_SYSCALLS_PROVIDED
14 return _sbrk_r (_REENT, incr);
15 #else
16 return _sbrk (incr);
17 #endif