This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for dos-compatibility



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]