Add #include <string.h> to get prototypes for functions that gcc
has builtin (and wants to know that the prototypes match).
This commit is contained in:
parent
3872512913
commit
90101d60e8
@ -51,6 +51,7 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/7/93";
|
||||
#include <sys/file.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
#include "less.h"
|
||||
|
||||
|
@ -54,6 +54,7 @@ static char sccsid[] = "@(#)os.c 8.1 (Berkeley) 6/6/93";
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <less.h>
|
||||
#include "pathnames.h"
|
||||
|
||||
|
@ -42,6 +42,7 @@ static char sccsid[] = "@(#)output.c 8.1 (Berkeley) 6/6/93";
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "less.h"
|
||||
|
||||
int errmsgs; /* Count of messages displayed by error() */
|
||||
|
@ -44,6 +44,7 @@ static char sccsid[] = "@(#)screen.c 8.2 (Berkeley) 4/20/94";
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <less.h>
|
||||
|
||||
#define TERMIOS 1
|
||||
|
@ -38,6 +38,7 @@ static char sccsid[] = "@(#)tags.c 8.1 (Berkeley) 6/6/93";
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <less.h>
|
||||
|
||||
#define WHITESP(c) ((c)==' ' || (c)=='\t')
|
||||
|
Loading…
Reference in New Issue
Block a user