From be8cf8b7fbefdf859aefc7195f4c62c8bb9fed23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 31 Mar 2016 10:32:51 +0200 Subject: [PATCH] sys/newlib: Fix function definitions to match newlib prototypes --- sys/newlib/syscalls.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/newlib/syscalls.c b/sys/newlib/syscalls.c index dc0617390a..7628a20746 100644 --- a/sys/newlib/syscalls.c +++ b/sys/newlib/syscalls.c @@ -22,6 +22,8 @@ * @} */ +#include +#include #include #include #include @@ -158,9 +160,10 @@ int _kill_r(struct _reent *r, pid_t pid, int sig) * * @return TODO */ -int _open_r(struct _reent *r, const char *name, int mode) +int _open_r(struct _reent *r, const char *name, int flags, int mode) { (void) name; + (void) flags; (void) mode; r->_errno = ENODEV; /* not implemented yet */ return -1; @@ -272,7 +275,7 @@ int _fstat_r(struct _reent *r, int fd, struct stat *st) * * @return TODO */ -int _stat_r(struct _reent *r, char *name, struct stat *st) +int _stat_r(struct _reent *r, const char *name, struct stat *st) { (void) name; (void) st; @@ -307,7 +310,7 @@ int _isatty_r(struct _reent *r, int fd) * * @return TODO */ -int _unlink_r(struct _reent *r, char *path) +int _unlink_r(struct _reent *r, const char *path) { (void) path; r->_errno = ENODEV; /* not implemented yet */