summaryrefslogtreecommitdiff
path: root/src/s/cygwin.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/cygwin.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/cygwin.h')
-rw-r--r--src/s/cygwin.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index ceebe23f1e7..af5308ff7bb 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -46,7 +46,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Define HAVE_PTYS if the system supports pty devices. */
#define HAVE_PTYS
-#define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
+#define PTY_ITERATION int i; for (i = 0; i < 1; i++) /* ick */
#define PTY_NAME_SPRINTF /* none */
#define PTY_TTY_NAME_SPRINTF /* none */
#define PTY_OPEN \
@@ -102,4 +102,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Send signals to subprocesses by "typing" special chars at them. */
#define SIGNALS_VIA_CHARACTERS
-