summaryrefslogtreecommitdiff
path: root/src/s/aix4-2.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-16 22:15:08 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-16 22:15:08 -0700
commitbe02381c5db4236f51f474726003d5a97bbc61f7 (patch)
tree3a1af8d00f502c46997d0709b830233114566978 /src/s/aix4-2.h
parent57048744037204ae0cef40cdca9d8a967a4e1407 (diff)
downloademacs-be02381c5db4236f51f474726003d5a97bbc61f7.tar.gz
* process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
That way, the code declares only the vars that it needs. * s/aix4-2.h (PTY_ITERATION): Declare iteration vars. * s/cygwin.h (PTY_ITERATION): Likewise. * s/darwin.h (PTY_ITERATION): Likewise. * s/gnu-linux.h (PTY_ITERATION): Likewise.
Diffstat (limited to 'src/s/aix4-2.h')
-rw-r--r--src/s/aix4-2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 443fc034570..c2715fffe01 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -32,7 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
To get the name of the slave side, you just ttyname() the master side. */
-#define PTY_ITERATION for (c = 0; !c ; c++)
+#define PTY_ITERATION int c; for (c = 0; !c ; c++)
#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));