aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'openpam-conf')
-rw-r--r--openpam-conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpam-conf b/openpam-conf
index d01f7f1..718b8a0 100644
--- a/openpam-conf
+++ b/openpam-conf
@@ -1,3 +1,9 @@
#if defined(HAVE_CRACKLIB)
# error "pam_cracklib is only supported with Linux-PAM"
#endif
+
+// OpenPAM only provides basic modules, it's FreeBSD that provides the
+// extended modules, so check for FreeBSD building first.
+#ifdef __FreeBSD__
+# define HAVE_LOGIN_ACCESS
+#endif