From bd7ebf378c71f4393aa010d266074231d686087c Mon Sep 17 00:00:00 2001 From: Shuai Wang Date: Sun, 10 May 2020 14:22:54 -0700 Subject: [PATCH] Declare instead of define variable in header file. (#224) This fixes link error with gcc 10 which defaults to -fno-common --- pam/pam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 // 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); -- 2.39.5