blob: 6e0e3e214ddcd4a33fb7ae19d64f0bf578bcfe5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ab,v 1.4 2012/04/07 01:53:18 obache Exp $
* LOG_AUTHPRIV is not in Solaris, use LOG_AUTH instead.
* Allow to build with non-native PAM on *BSD.
--- pam_af.c.orig 2011-08-24 07:53:32.000000000 +0000
+++ pam_af.c
@@ -41,6 +41,9 @@
#include <fcntl.h>
#include <time.h>
#include <syslog.h>
+#ifndef LOG_AUTHPRIV
+#define LOG_AUTHPRIV LOG_AUTH
+#endif
#include <assert.h>
#include <ndbm.h>
@@ -444,6 +447,6 @@ pam_sm_setcred(pamh, flags, argc, argv)
PAM_RETURN(PAM_SUCCESS);
}
-#ifdef _USE_MODULE_ENTRY_
+#ifdef PAM_MODULE_ENTRY
PAM_MODULE_ENTRY("pam_af");
#endif
|