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:
kevans 2020-03-29 19:16:14 +00:00
parent 03c07741d4
commit 70c1442a95
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