This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
patch for dos-compatibility
- To: egcs at cygnus dot com, gcc2 at cygnus dot com
- Subject: patch for dos-compatibility
- From: Marc Lehmann <pcg at goof dot com>
- Date: Wed, 15 Oct 1997 22:55:38 +0200 (CEST)
ps isn't available under plain DOS, executing -dm causes
an error to be printed ("ps not found").
Wed Oct 15 22:53:43 CEST 1997 Marc Lehmann (pcg@goof.com)
* toplev.c (main): Don't execute "ps" under MSDOS.
Index: toplev.c
===================================================================
RCS file: /home/cvsroot/egcs/gcc/toplev.c,v
retrieving revision 1.3
diff -u -r1.3 toplev.c
--- toplev.c 1997/10/12 12:43:58 1.3
+++ toplev.c 1997/10/15 20:52:14
@@ -4663,11 +4663,13 @@
lim - (char *) &environ);
fflush (stderr);
+#ifndef __MSDOS__
#ifdef USG
system ("ps -l 1>&2");
#else /* not USG */
system ("ps v");
#endif /* not USG */
+#endif
}
#endif /* ! OS2 && ! VMS && (! _WIN32 || CYGWIN32) */