diff options
author | Damien Miller <djm@mindrot.org> | 2000-12-20 13:34:48 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-12-20 13:34:48 +1100 |
commit | 82cf0ceea899d4c7a47bdec79eea6dc2a8576bc7 (patch) | |
tree | f9011833137c0c5589ebe0b5fb45da9ddc069bca /defines.h | |
parent | 28bfc0da69166bc1afe33cfb1a61dadce01169e2 (diff) |
- (djm) Workaround PAM inconsistencies between Solaris derived PAM code
and Linux-PAM. Based on report and fix from Andrew Morgan
<morgan@transmeta.com>
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -340,6 +340,12 @@ struct winsize { | |||
340 | # define PAM_STRERROR(a,b) pam_strerror((a),(b)) | 340 | # define PAM_STRERROR(a,b) pam_strerror((a),(b)) |
341 | #endif | 341 | #endif |
342 | 342 | ||
343 | #ifdef PAM_SUN_CODEBASE | ||
344 | # define PAM_MSG_MEMBER(msg, n, member) ((*(msg))[(n)].member) | ||
345 | #else | ||
346 | # define PAM_MSG_MEMBER(msg, n, member) ((msg)[(n)]->member) | ||
347 | #endif | ||
348 | |||
343 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) | 349 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) |
344 | # undef HAVE_GETADDRINFO | 350 | # undef HAVE_GETADDRINFO |
345 | #endif /* defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) */ | 351 | #endif /* defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) */ |