From: Todd C. Miller Date: Wed, 2 Jun 2010 14:25:59 +0000 (-0400) Subject: Fix OpenPAM detection for newer versions. X-Git-Tag: SUDO_1_7_3~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b156ddc2fa25f566a00dc7de591f90ba7ed0c3c4;p=sudo Fix OpenPAM detection for newer versions. --HG-- branch : 1.7 --- 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