[sudo-workers] [PATCH] sudo/auth/pam.c: Fix Linux PAM check
Dmitry V. Levin
ldv at altlinux.org
Tue Apr 17 09:27:18 EDT 2007
The __LIBPAM_VERSION macro was removed from Linux PAM at
"Tue Aug 16 12:27:38 2005 +0000".
The __LINUX_PAM__ macro was added to Linux PAM at
"Thu Sep 01 13:59:20 2005 +0000".
---
sudo/auth/pam.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sudo/auth/pam.c b/sudo/auth/pam.c
index d289a06..23b04ed 100644
--- a/sudo/auth/pam.c
+++ b/sudo/auth/pam.c
@@ -56,7 +56,7 @@
#include "sudo_auth.h"
/* Only OpenPAM and Linux PAM use const qualifiers. */
-#if defined(_OPENPAM) || defined(__LIBPAM_VERSION)
+#if defined(_OPENPAM) || defined(__LIBPAM_VERSION) || defined(__LINUX_PAM__)
# define PAM_CONST const
#else
# define PAM_CONST
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/sudo-workers/attachments/20070417/676260b1/attachment.bin>
More information about the sudo-workers
mailing list