Blame SOURCES/shadow-4.6-libsubid_make_logfd_not_extern.patch

9ed61c
From 1d767fb779d7b203ad609540d1dc605cf62d1050 Mon Sep 17 00:00:00 2001
9ed61c
From: Serge Hallyn <serge@hallyn.com>
9ed61c
Date: Fri, 28 May 2021 22:02:16 -0500
9ed61c
Subject: [PATCH] libsubid/api.c: make shadow_logfd not extern
9ed61c
9ed61c
Closes #346
9ed61c
9ed61c
Also #include stdio.h
9ed61c
9ed61c
Signed-off-by: Serge Hallyn <serge@hallyn.com>
9ed61c
---
9ed61c
 libsubid/api.c   | 2 +-
9ed61c
 libsubid/subid.h | 1 +
9ed61c
 2 files changed, 2 insertions(+), 1 deletion(-)
9ed61c
9ed61c
diff --git a/libsubid/api.c b/libsubid/api.c
9ed61c
index b477b271..a7b904d0 100644
9ed61c
--- a/libsubid/api.c
9ed61c
+++ b/libsubid/api.c
9ed61c
@@ -40,7 +40,7 @@
9ed61c
 #include "subid.h"
9ed61c
 
9ed61c
 const char *Prog = "(libsubid)";
9ed61c
-extern FILE * shadow_logfd;
9ed61c
+FILE *shadow_logfd;
9ed61c
 
9ed61c
 bool libsubid_init(const char *progname, FILE * logfd)
9ed61c
 {
9ed61c
diff --git a/libsubid/subid.h b/libsubid/subid.h
9ed61c
index 5fef2572..eabafe4d 100644
9ed61c
--- a/libsubid/subid.h
9ed61c
+++ b/libsubid/subid.h
9ed61c
@@ -1,4 +1,5 @@
9ed61c
 #include <sys/types.h>
9ed61c
+#include <stdio.h>
9ed61c
 #include <stdbool.h>
9ed61c
 
9ed61c
 #ifndef SUBID_RANGE_DEFINED
9ed61c
-- 
9ed61c
2.31.1
9ed61c