summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 642b00797..4c3941cad 100644
--- a/defines.h
+++ b/defines.h
@@ -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) */