Author: kevans Date: Sun Mar 29 19:16:14 2020 New Revision: 359425 URL: https://svnweb.freebsd.org/changeset/base/359425
Log: 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 Modified: head/usr.bin/locate/locate/locate.c head/usr.bin/locate/locate/locate.h Modified: head/usr.bin/locate/locate/locate.c ============================================================================== --- head/usr.bin/locate/locate/locate.c Sun Mar 29 19:14:27 2020 (r359424) +++ head/usr.bin/locate/locate/locate.c Sun Mar 29 19:16:14 2020 (r359425) @@ -116,6 +116,7 @@ int f_limit; /* limit number of output line 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 *); Modified: head/usr.bin/locate/locate/locate.h ============================================================================== --- head/usr.bin/locate/locate/locate.h Sun Mar 29 19:14:27 2020 (r359424) +++ head/usr.bin/locate/locate/locate.h Sun Mar 29 19:16:14 2020 (r359425) @@ -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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"