summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2010-06-02 10:07:34 -0400
committerTodd C. Miller <Todd.Miller@courtesan.com>2010-06-02 10:07:34 -0400
commit02e407705d134010819b7216100fe08910447601 (patch)
tree48e1a89b6077f9a00039bc00d617324cdf647004
parent4c55ee1af778b63786c69e6b09d501384d2a615e (diff)
downloadsudo-02e407705d134010819b7216100fe08910447601.tar.gz
Fix OpenPAM detection for newer versions.
-rw-r--r--auth/pam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/pam.c b/auth/pam.c
index f4269b841..f9fa26d34 100644
--- a/auth/pam.c
+++ b/auth/pam.c
@@ -66,7 +66,8 @@
#include "sudo_auth.h"
/* Only OpenPAM and Linux PAM use const qualifiers. */
-#if defined(_OPENPAM) || defined(__LIBPAM_VERSION) || defined(__LINUX_PAM__)
+#if defined(_OPENPAM) || defined(OPENPAM_VERSION) || \
+ defined(__LIBPAM_VERSION) || defined(__LINUX_PAM__)
# define PAM_CONST const
#else
# define PAM_CONST