PR/2808: Don't include <sgtty.h> unless OLD_TTY_DRIVER is defined.

Remove extraneous newline from error messages.
This commit is contained in:
christos 1996-10-16 14:42:20 +00:00
parent 435812e77d
commit a20d79429a

View File

@ -1,4 +1,4 @@
/* $NetBSD: jobs.c,v 1.18 1996/09/17 14:44:05 mycroft Exp $ */
/* $NetBSD: jobs.c,v 1.19 1996/10/16 14:42:20 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
#else
static char rcsid[] = "$NetBSD: jobs.c,v 1.18 1996/09/17 14:44:05 mycroft Exp $";
static char rcsid[] = "$NetBSD: jobs.c,v 1.19 1996/10/16 14:42:20 christos Exp $";
#endif
#endif /* not lint */
@ -56,10 +56,15 @@ static char rcsid[] = "$NetBSD: jobs.c,v 1.18 1996/09/17 14:44:05 mycroft Exp $"
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <sys/ioctl.h>
#include "shell.h"
#if JOBS
#if OLD_TTY_DRIVER
#include "sgtty.h"
#else
#include <termios.h>
#endif
#undef CEOF /* syntax.h redefines this */
#endif
#include "redir.h"
@ -598,10 +603,10 @@ forkshell(jp, n, mode)
/*** this causes superfluous TIOCSPGRPS ***/
#ifdef OLD_TTY_DRIVER
if (ioctl(2, TIOCSPGRP, (char *)&pgrp) < 0)
error("TIOCSPGRP failed, errno=%d\n", errno);
error("TIOCSPGRP failed, errno=%d", errno);
#else
if (tcsetpgrp(2, pgrp) < 0)
error("tcsetpgrp failed, errno=%d\n", errno);
error("tcsetpgrp failed, errno=%d", errno);
#endif
}
setsignal(SIGTSTP);