locate: fix -fno-common build

Just a single variable declaration to extern and define elsewhere here,
myctype.

-fno-common will become a default in GCC10/LLVM11.

MFC after:	3 days
This commit is contained in:
Kyle Evans 2020-03-29 19:16:14 +00:00
parent 6d0d51a41c
commit 8dddde9ebb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359425
2 changed files with 2 additions and 1 deletions

View file

@ -116,6 +116,7 @@ int f_limit; /* limit number of output lines, 0 == infinite */
u_int counter; /* counter for matches [-c] */
char separator='\n'; /* line separator */
u_char myctype[UCHAR_MAX + 1];
void usage(void);
void statistic(FILE *, char *);

View file

@ -65,7 +65,7 @@
define TOLOWER(ch) tolower(ch)
#else
u_char myctype[UCHAR_MAX + 1];
extern u_char myctype[UCHAR_MAX + 1];
#define TOLOWER(ch) (myctype[ch])
#endif