mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
2 changed files with 2 additions and 1 deletions
|
|
@ -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