summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-12-04 18:29:29 +0000
committerJeff Johnston <jjohnstn@redhat.com>2000-12-04 18:29:29 +0000
commitf5e7c1244ba605e4f26d02a1402af0d6f403875d (patch)
tree64466dcee9aa5e12beaed52660b1ed0b562d309c
parent768abc9c15e1bbde7dbe7946c0fa2df1b86eb568 (diff)
downloadcygnal-f5e7c1244ba605e4f26d02a1402af0d6f403875d.tar.gz
cygnal-f5e7c1244ba605e4f26d02a1402af0d6f403875d.tar.bz2
cygnal-f5e7c1244ba605e4f26d02a1402af0d6f403875d.zip
2000-12-04 Joel Sherrill <joel@OARcorp.com>
* libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdlib/system.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 80758939f..7d381f3e2 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2000-12-04 Joel Sherrill <joel@OARcorp.com>
+ * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
+
+2000-12-04 Joel Sherrill <joel@OARcorp.com>
+
* libc/include/ieeefp.h: Added entries for OpenCores CPUs.
2000-12-04 Joel Sherrill <joel@OARcorp.com>
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c
index 770996e57..cc12411e3 100644
--- a/newlib/libc/stdlib/system.c
+++ b/newlib/libc/stdlib/system.c
@@ -106,7 +106,7 @@ system (s)
#endif
-#if defined (unix) && !defined (__CYGWIN__)
+#if defined (unix) && !defined (__CYGWIN__) && !defined(__rtems__)
extern char **environ;
/* Only deal with a pointer to environ, to work around subtle bugs with shared