summaryrefslogtreecommitdiffstats
path: root/includes.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-01-02 18:01:30 +1100
committerDamien Miller <djm@mindrot.org>2004-01-02 18:01:30 +1100
commit0f47c53742a31b9682c05660dd8de1e860fb1fc5 (patch)
tree7ca6b79f339d5de9bd0ab6d7fe859b64dc0a5ab6 /includes.h
parentc8ec16651ea05e160f5dd51dc70f0db946ee2761 (diff)
- (djm) OSX/Darwin put the PAM headers in a different place, detect this.
Report from jakob@
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 033cd91f..ac9a950e 100644
--- a/includes.h
+++ b/includes.h
@@ -147,7 +147,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
# include <rpc/types.h> /* For INADDR_LOOPBACK */
#endif
#ifdef USE_PAM
+#if defined(HAVE_SECURITY_PAM_APPL_H)
# include <security/pam_appl.h>
+#elif defined (HAVE_PAM_PAM_APPL_H)
+# include <pam/pam_appl.h>
+#endif
#endif
#ifdef HAVE_READPASSPHRASE_H
# include <readpassphrase.h>