aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuai Wang <Etrnls@gmail.com>2020-05-10 14:22:54 -0700
committerGitHub <noreply@github.com>2020-05-10 14:22:54 -0700
commitbd7ebf378c71f4393aa010d266074231d686087c (patch)
treeadb6cbd64934f4400520c2cbc42871b4986fd270
parentd4d28232d32bfb3f4827fcb79bd5043e1932ae66 (diff)
Declare instead of define variable in header file. (#224)
This fixes link error with gcc 10 which defaults to -fno-common
-rw-r--r--pam/pam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam/pam.h b/pam/pam.h
index 7571da8..54bb193 100644
--- a/pam/pam.h
+++ b/pam/pam.h
@@ -23,7 +23,7 @@
#include <security/pam_appl.h>
// Conversation that will call back into Go code when appropriate.
-const struct pam_conv *goConv;
+extern const struct pam_conv *goConv;
// CleaupFuncs are used to cleanup specific PAM data.
typedef void (*CleanupFunc)(pam_handle_t *pamh, void *data, int error_status);