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) git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@96385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
9ae08b0024
commit
0a0dabb57b
|
@ -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 **);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue