Fix OpenPAM detection for newer versions.

This commit is contained in:
Todd C. Miller
2010-06-02 10:33:02 -04:00
parent 78e7c649f0
commit 41436a7869

View File

@@ -66,7 +66,8 @@
#include "sudo_auth.h" #include "sudo_auth.h"
/* Only OpenPAM and Linux PAM use const qualifiers. */ /* 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 # define PAM_CONST const
#else #else
# define PAM_CONST # define PAM_CONST