diff --git a/newlib/libc/sys/jehanne/sysfcntl.c b/newlib/libc/sys/jehanne/sysfcntl.c index 7c041aebc..fdac38f40 100644 --- a/newlib/libc/sys/jehanne/sysfcntl.c +++ b/newlib/libc/sys/jehanne/sysfcntl.c @@ -20,6 +20,7 @@ #include #include +extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); extern int __fail_with_einval(void); int @@ -31,13 +32,11 @@ fcntl(int fd, int cmd, int arg) long fpathconf(int fildes, int name) { - extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); return __fail_with_einval(); } long pathconf(const char *path, int name) { - extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); return __fail_with_einval(); } diff --git a/newlib/libc/sys/jehanne/termios.c b/newlib/libc/sys/jehanne/termios.c index 576ceb36a..eb3f6a8ef 100644 --- a/newlib/libc/sys/jehanne/termios.c +++ b/newlib/libc/sys/jehanne/termios.c @@ -100,13 +100,13 @@ cfgetospeed(const struct termios *t) int cfsetispeed(struct termios *tp, speed_t speed) { - extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); + extern int __fail_with_einval(void); return __fail_with_einval(); } int cfsetospeed(struct termios *tp, speed_t speed) { - extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); + extern int __fail_with_einval(void); return __fail_with_einval(); }