diff options
| author | Paul Eggert | 2011-03-16 22:15:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-16 22:15:08 -0700 |
| commit | be02381c5db4236f51f474726003d5a97bbc61f7 (patch) | |
| tree | 3a1af8d00f502c46997d0709b830233114566978 /src/s/gnu-linux.h | |
| parent | 57048744037204ae0cef40cdca9d8a967a4e1407 (diff) | |
| download | emacs-be02381c5db4236f51f474726003d5a97bbc61f7.tar.gz emacs-be02381c5db4236f51f474726003d5a97bbc61f7.zip | |
* 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/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 84fe5b92da9..178d7082f72 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -44,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #define UNIX98_PTYS | 44 | #define UNIX98_PTYS |
| 45 | 45 | ||
| 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ | 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 47 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 47 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) |
| 48 | 48 | ||
| 49 | #ifdef HAVE_GETPT | 49 | #ifdef HAVE_GETPT |
| 50 | #define PTY_NAME_SPRINTF | 50 | #define PTY_NAME_SPRINTF |