diff options
| author | Svante Signell | 2011-04-08 14:44:36 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-04-08 14:44:36 -0400 |
| commit | 0080dc6bd919f83c036bb6072800032b1723b248 (patch) | |
| tree | 0b4355a65964fccac9344db4d1e1da758d458496 /src/term.c | |
| parent | 7afdcb4571269bd1175fe8f5d3aac928ce942ec0 (diff) | |
| download | emacs-0080dc6bd919f83c036bb6072800032b1723b248.tar.gz emacs-0080dc6bd919f83c036bb6072800032b1723b248.zip | |
* term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index 6d16a65674b..44e127e7154 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3413,13 +3413,12 @@ init_tty (char *name, char *terminal_type, int must_succeed) | |||
| 3413 | if we don't have one at the moment. */ | 3413 | if we don't have one at the moment. */ |
| 3414 | fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0); | 3414 | fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0); |
| 3415 | else | 3415 | else |
| 3416 | #else | 3416 | #endif /* O_IGNORE_CTTY */ |
| 3417 | /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only | 3417 | /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only |
| 3418 | defined on Hurd. On other systems, we need to explicitly | 3418 | defined on Hurd. On other systems, we need to explicitly |
| 3419 | dissociate ourselves from the controlling tty when we want to | 3419 | dissociate ourselves from the controlling tty when we want to |
| 3420 | open a frame on the same terminal. */ | 3420 | open a frame on the same terminal. */ |
| 3421 | fd = emacs_open (name, O_RDWR | O_NOCTTY, 0); | 3421 | fd = emacs_open (name, O_RDWR | O_NOCTTY, 0); |
| 3422 | #endif /* O_IGNORE_CTTY */ | ||
| 3423 | 3422 | ||
| 3424 | tty->name = xstrdup (name); | 3423 | tty->name = xstrdup (name); |
| 3425 | terminal->name = xstrdup (name); | 3424 | terminal->name = xstrdup (name); |