patch for dos-compatibility

Marc Lehmann pcg@goof.com
Wed Oct 15 16:57:00 GMT 1997


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) */
 




More information about the Gcc mailing list