blob: b8d0523e461fe8a8656ca760f44a754dd8ecbb1b (
plain)
1 From fc832e4648d6e80e95aaa762a158453ee43fe1cb Mon Sep 17 00:00:00 2001
2 From: "(GalaxyMaster)" <galaxy4public@users.noreply.github.com>
3 Date: Wed, 27 Oct 2021 20:14:42 +1100
4 Subject: [PATCH] Fixes the linking issues when libsubid is static and linked
5 to binaries that also define the Prog and shadow_logfd variables.
6
7 ---
8 libsubid/api.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/libsubid/api.c b/libsubid/api.c
12 index a7b904d0..a51b4e01 100644
13 --- a/libsubid/api.c
14 +++ b/libsubid/api.c
15 @@ -39,8 +39,8 @@
16 #include "idmapping.h"
17 #include "subid.h"
18
19 -const char *Prog = "(libsubid)";
20 -FILE *shadow_logfd;
21 +static const char *Prog = "(libsubid)";
22 +static FILE *shadow_logfd;
23
24 bool libsubid_init(const char *progname, FILE * logfd)
25 {
|