unbreak build:

commands.c, sys_bsd.c: comment out/remove junk after #endif/#else
network.c, terminal.c, utlities.c: include stdlib.h for exit(3)
This commit is contained in:
Alfred Perlstein 2002-05-11 03:19:44 +00:00
parent 753d42d2ea
commit cc7b0935ec
10 changed files with 14 additions and 6 deletions

View File

@ -81,7 +81,7 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif MAXHOSTNAMELEN
#endif
typedef int (*intrtn_t)(int, char **);

View File

@ -44,6 +44,7 @@ static const char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93";
#include <sys/time.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/telnet.h>
#include <unistd.h>

View File

@ -654,9 +654,9 @@ TerminalNewMode(int f)
(void) signal(SIGTSTP, SIG_DFL);
# ifndef SOLARIS
(void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1)));
# else SOLARIS
# else /* SOLARIS */
(void) sigrelse(SIGTSTP);
# endif SOLARIS
# endif /* SOLARIS */
#endif /* SIGTSTP */
#ifndef USE_TERMIO
ltc = oltc;

View File

@ -42,6 +42,8 @@ static const char sccsid[] = "@(#)terminal.c 8.2 (Berkeley) 2/16/95";
#include <arpa/telnet.h>
#include <sys/types.h>
#include <stdlib.h>
#include "ring.h"
#include "externs.h"

View File

@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95";
#include <sys/socket.h>
#include <sys/time.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include "general.h"

View File

@ -81,7 +81,7 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif MAXHOSTNAMELEN
#endif
typedef int (*intrtn_t)(int, char **);

View File

@ -44,6 +44,7 @@ static const char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93";
#include <sys/time.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/telnet.h>
#include <unistd.h>

View File

@ -654,9 +654,9 @@ TerminalNewMode(int f)
(void) signal(SIGTSTP, SIG_DFL);
# ifndef SOLARIS
(void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1)));
# else SOLARIS
# else /* SOLARIS */
(void) sigrelse(SIGTSTP);
# endif SOLARIS
# endif /* SOLARIS */
#endif /* SIGTSTP */
#ifndef USE_TERMIO
ltc = oltc;

View File

@ -42,6 +42,8 @@ static const char sccsid[] = "@(#)terminal.c 8.2 (Berkeley) 2/16/95";
#include <arpa/telnet.h>
#include <sys/types.h>
#include <stdlib.h>
#include "ring.h"
#include "externs.h"

View File

@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95";
#include <sys/socket.h>
#include <sys/time.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include "general.h"