diff options
Diffstat (limited to 'src/pam_wrapper.c')
-rw-r--r-- | src/pam_wrapper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c index dd69c43..6801d7b 100644 --- a/src/pam_wrapper.c +++ b/src/pam_wrapper.c @@ -311,7 +311,14 @@ static struct pwrap pwrap; *********************************************************/ bool pam_wrapper_enabled(void); +#if ! defined(HAVE_CONSTRUCTOR_ATTRIBUTE) && defined(HAVE_PRAGMA_INIT) +/* xlC and other oldschool compilers support (only) this */ +#pragma init (pwrap_constructor) +#endif void pwrap_constructor(void) CONSTRUCTOR_ATTRIBUTE; +#if ! defined(HAVE_DESTRUCTOR_ATTRIBUTE) && defined(HAVE_PRAGMA_FINI) +#pragma fini (pwrap_destructor) +#endif void pwrap_destructor(void) DESTRUCTOR_ATTRIBUTE; /********************************************************* |