]> granicus.if.org Git - sudo/commitdiff
Fix OpenPAM detection for newer versions.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Jun 2010 14:33:02 +0000 (10:33 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Jun 2010 14:33:02 +0000 (10:33 -0400)
plugins/sudoers/auth/pam.c

index ea0a5e142cc7d735066c257b2e6e3c5e583c1541..ddbd46aa2ca9ba1ea131b2dbca92a02d263fb84e 100644 (file)
@@ -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