aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/various/syscalls.c')
-rw-r--r--os/various/syscalls.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/os/various/syscalls.c b/os/various/syscalls.c
index f19f733c7..41c04bac1 100644
--- a/os/various/syscalls.c
+++ b/os/various/syscalls.c
@@ -65,11 +65,6 @@
#include "hal.h"
#endif
-#ifndef __errno_r
-#include <sys/reent.h>
-#define __errno_r(reent) reent->_errno
-#endif
-
/***************************************************************************/
int _read_r(struct _reent *r, int file, char * ptr, int len)
@@ -134,10 +129,10 @@ int _close_r(struct _reent *r, int file)
caddr_t _sbrk_r(struct _reent *r, int incr)
{
-#if CH_USE_MEMCORE
+#if CH_CFG_USE_MEMCORE
void *p;
- chDbgCheck(incr > 0, "_sbrk_r");
+ chDbgCheck(incr > 0);
p = chCoreAlloc((size_t)incr);
if (p == NULL) {