From: Todd C. Miller Date: Wed, 2 Jun 2010 14:33:02 +0000 (-0400) Subject: Fix OpenPAM detection for newer versions. X-Git-Tag: SUDO_1_8_0~545 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41436a7869ba51a3236e3a22b1d7f68d951d08b1;p=sudo Fix OpenPAM detection for newer versions. --- diff --git a/plugins/sudoers/auth/pam.c b/plugins/sudoers/auth/pam.c index ea0a5e142..ddbd46aa2 100644 --- a/plugins/sudoers/auth/pam.c +++ b/plugins/sudoers/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