From 43daf85bb4001c32ea0d824e98ad75a53d92937c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 28 Jun 2020 11:21:26 +0200 Subject: [PATCH] truss(1): Fix building with -fno-common. -fno-common will be default in future compilers (GCC 10, for example). --- usr.bin/truss/extern.h | 4 ++-- usr.bin/truss/main.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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. -- 2.41.0