summaryrefslogtreecommitdiffstats
path: root/include/pamfail.h
diff options
context:
space:
mode:
authorWill Johansson2014-12-10 03:40:31 +0100
committerKarel Zak2014-12-15 10:16:03 +0100
commitfe2c9909cd127b5be0f103b8e633807c6afde000 (patch)
tree6d6b9b36aa0e9884a3785303cbe06a79b6a15c31 /include/pamfail.h
parentlslogins: fix -l -g logic (diff)
downloadkernel-qcow2-util-linux-fe2c9909cd127b5be0f103b8e633807c6afde000.tar.gz
kernel-qcow2-util-linux-fe2c9909cd127b5be0f103b8e633807c6afde000.tar.xz
kernel-qcow2-util-linux-fe2c9909cd127b5be0f103b8e633807c6afde000.zip
login-utils: Enable building util-linux against OpenPAM
OpenPAM is compatible with util-linux, with a few changes, namely using OpenPAM's conversation function, openpam_ttyconv. We check for Linux-PAM by querying for security/pam_misc.h, and OpenPAM by querying for security/openpam.h. Signed-off-by: Will Johansson <will.johansson@gmail.com>
Diffstat (limited to 'include/pamfail.h')
-rw-r--r--include/pamfail.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/pamfail.h b/include/pamfail.h
index e102df227..bb83b9404 100644
--- a/include/pamfail.h
+++ b/include/pamfail.h
@@ -6,7 +6,11 @@
*/
#ifndef UTIL_LINUX_PAMFAIL_H
#include <security/pam_appl.h>
-#include <security/pam_misc.h>
+#ifdef HAVE_SECURITY_PAM_MISC_H
+# include <security/pam_misc.h>
+#elif defined(HAVE_SECURITY_OPENPAM_H)
+# include <security/openpam.h>
+#endif
#include "c.h"
static inline int