diff src/process-unix.c @ 278:90d73dddcdc4 r21-0b37

Import from CVS: tag r21-0b37
author cvs
date Mon, 13 Aug 2007 10:31:29 +0200
parents ca9a9ec9c1c1
children c42ec1d1cded
line wrap: on
line diff
--- a/src/process-unix.c	Mon Aug 13 10:30:38 2007 +0200
+++ b/src/process-unix.c	Mon Aug 13 10:31:29 2007 +0200
@@ -204,9 +204,8 @@
 static int
 allocate_pty (void)
 {
+#ifndef PTY_OPEN
   struct stat stb;
-  int c, i;
-  int fd;
 
   /* Some systems name their pseudoterminals so that there are gaps in
      the usual sequence - for example, on HP9000/S700 systems, there
@@ -214,6 +213,10 @@
      three failures in a row before deciding that we've reached the
      end of the ptys.  */
   int failed_count = 0;
+#endif
+  int i;
+  int fd;
+  int c;
 
 #ifdef PTY_ITERATION
   PTY_ITERATION