From: Sascha Wildner Date: Sun, 28 Jun 2020 09:21:26 +0000 (+0200) Subject: truss(1): Fix building with -fno-common. X-Git-Tag: v6.0.0rc1~957 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/43daf85bb4001c32ea0d824e98ad75a53d92937c truss(1): Fix building with -fno-common. -fno-common will be default in future compilers (GCC 10, for example). --- diff --git a/usr.bin/truss/extern.h b/usr.bin/truss/extern.h index 32f5f4a58e..52e1443d72 100644 --- a/usr.bin/truss/extern.h +++ b/usr.bin/truss/extern.h @@ -33,8 +33,8 @@ #include -char procfs_path[FILENAME_MAX]; -int have_procfs; +extern char procfs_path[FILENAME_MAX]; +extern int have_procfs; extern int Procfd; diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c index 5fb812ac51..c860316c46 100644 --- a/usr.bin/truss/main.c +++ b/usr.bin/truss/main.c @@ -55,6 +55,9 @@ #include "truss.h" #include "extern.h" +char procfs_path[FILENAME_MAX]; +int have_procfs; + /* * These should really be parameterized -- I don't like having globals, * but this is the easiest way, right now, to deal with them.