diff options
| author | Shuai Wang <Etrnls@gmail.com> | 2020-05-10 14:22:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 14:22:54 -0700 |
| commit | bd7ebf378c71f4393aa010d266074231d686087c (patch) | |
| tree | adb6cbd64934f4400520c2cbc42871b4986fd270 /pam/pam.h | |
| parent | d4d28232d32bfb3f4827fcb79bd5043e1932ae66 (diff) | |
Declare instead of define variable in header file. (#224)
This fixes link error with gcc 10 which defaults to -fno-common
Diffstat (limited to 'pam/pam.h')
| -rw-r--r-- | pam/pam.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |