git: tip(1): Fix building with -fno-common.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Jul 15 02:24:56 PDT 2020


commit 97edc4fd0ce1b4546c05cb23176a9660df9024b5
Author: Sascha Wildner <saw at online.de>
Date:   Wed Jul 15 11:23:19 2020 +0200

    tip(1): Fix building with -fno-common.
    
    We do so by adding 'EXTERN' to all offending variables and then defining
    'EXTERN' to 'extern' for all .c files, except for one (tip.c). This is
    the same "fix" that FreeBSD chose, to be cleaned up better at a later
    point in time.
    
    -fno-common will be default in future compilers (GCC 10, for example).

Summary of changes:
 usr.bin/tip/tip.c |   1 +
 usr.bin/tip/tip.h | 127 ++++++++++++++++++++++++++++--------------------------
 2 files changed, 66 insertions(+), 62 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/97edc4fd0ce1b4546c05cb23176a9660df9024b5


-- 
DragonFly BSD source repository



More information about the Commits mailing list