From 41c581549be7d110d7e3c7c1061451c5219f91cb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 10 Mar 1997 19:38:06 +0000 Subject: made some of this conditional on unix lib --- c/src/lib/libc/syscalls.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libc') diff --git a/c/src/lib/libc/syscalls.c b/c/src/lib/libc/syscalls.c index 44b967b50c..5bd44910e0 100644 --- a/c/src/lib/libc/syscalls.c +++ b/c/src/lib/libc/syscalls.c @@ -1,5 +1,3 @@ -#if !defined(RTEMS_UNIX) - /* * RTEMS Fake System Calls * @@ -27,6 +25,9 @@ #include #include /* only for puts */ +#include + +#ifdef RTEMS_NEWLIB /* * fstat, stat, and isatty must lie consistently and report that everything * is a tty or stdout will not be line buffered. @@ -50,6 +51,7 @@ int __rtems_isatty(int _fd) return 1; } +#if !defined(RTEMS_UNIX) int stat( const char *path, struct stat *buf ) { if ( strncmp( "/dev/", path, 5 ) ) { @@ -93,5 +95,6 @@ int wait() { errno = ENOSYS; return -1; } +#endif #endif -- cgit v1.2.3