summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/syscalls.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 19:38:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 19:38:06 +0000
commit41c581549be7d110d7e3c7c1061451c5219f91cb (patch)
treeb2f98d7145783f3af8cab60d7734257d8f9dee0c /c/src/lib/libc/syscalls.c
parentinitialized a stack variable to avoid a warning. (diff)
downloadrtems-41c581549be7d110d7e3c7c1061451c5219f91cb.tar.bz2
made some of this conditional on unix lib
Diffstat (limited to '')
-rw-r--r--c/src/lib/libc/syscalls.c7
1 files changed, 5 insertions, 2 deletions
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 <string.h>
#include <stdio.h> /* only for puts */
+#include <rtems.h>
+
+#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