/* -*-C-*-
-$Id: uxproc.c,v 1.19 1996/03/11 20:38:24 cph Exp $
+$Id: uxproc.c,v 1.20 1997/05/01 03:51:13 cph Exp $
-Copyright (c) 1990-96 Massachusetts Institute of Technology
+Copyright (c) 1990-97 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "error: can't hack subprocess I/O without dup2() or equivalent"
#endif
+#if defined(__osf__) || defined(__bsdi__)
+#define USE_TIOCSCTTY
+#endif
+
extern char ** environ;
extern void EXFUN
((*subprocess_death_hook), (pid_t pid, wait_status_t * status));
|| ((SLAVE_PTY_P (ctty_name)) && (! (SETUP_SLAVE_PTY (fd))))
#endif
|| (! (isatty (fd)))
-#ifdef __osf__
+#ifdef USE_TIOCSCTTY
|| ((UX_ioctl (fd, TIOCSCTTY, 0)) < 0)
#endif
/* Tell the controlling terminal its process group. */
must disable them if they are present. */
#define IUCLC 0
#define OLCUC 0
-#define ONLCR 0
#define NLDLY 0
#define CRDLY 0
#define TABDLY 0
#define FFDLY 0
#endif
+#ifndef ONLCR
+#define ONLCR 0
+#endif
+
static int
DEFUN (child_setup_tty, (fd), int fd)
{