]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
Declare instead of define variable in header file. (#224)
authorShuai Wang <Etrnls@gmail.com>
Sun, 10 May 2020 21:22:54 +0000 (14:22 -0700)
committerGitHub <noreply@github.com>
Sun, 10 May 2020 21:22:54 +0000 (14:22 -0700)
This fixes link error with gcc 10 which defaults to -fno-common

pam/pam.h

index 7571da8f8b4ab1923c957699161b2b7464936859..54bb193334cf5f6682d5a8c342545df44cf455cd 100644 (file)
--- 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);