mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
6d0d51a41c
commit
8dddde9ebb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359425
|
@ -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 *);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue