Date: Sun, 29 Mar 2020 19:16:15 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359425 - head/usr.bin/locate/locate Message-ID: <202003291916.02TJGFTG048772@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003291916.02TJGFTG048772>