]> granicus.if.org Git - sudo/commitdiff
Fix OpenPAM detection for newer versions.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Jun 2010 14:25:59 +0000 (10:25 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Jun 2010 14:25:59 +0000 (10:25 -0400)
--HG--
branch : 1.7

auth/pam.c

index f4269b841bfd969161fd82ab540be57e4191c8c2..f9fa26d34387cc3ea6d6dec2d61ad99be3f9a2f4 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