Fix broken build on Solaris 10 emacs_spawn

* src/callproc.c (emacs_spawn) [SETUP_SLAVE_TTY]:
pty_flag no longer exists.  Use pty_in && std_in >= 0,
which at least compiles.
This commit is contained in:
Paul Eggert 2022-08-17 23:12:55 -07:00
parent 9a3f64f406
commit 7406ae4c98

View file

@ -1574,7 +1574,7 @@ emacs_spawn (pid_t *newpid, int std_in, int std_out, int std_err,
#endif /* not DONT_REOPEN_PTY */
#ifdef SETUP_SLAVE_PTY
if (pty_flag)
if (pty_in && std_in >= 0)
{
SETUP_SLAVE_PTY;
}