From: Todd C. Miller Date: Fri, 9 Jan 2004 19:39:00 +0000 (+0000) Subject: Move PAM_CONST macro definition from config.h to pam.c where it belongs. X-Git-Tag: SUDO_1_6_8~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=149862cd9dfdc2a20dd5a1227baf5e345c47d673;p=sudo Move PAM_CONST macro definition from config.h to pam.c where it belongs. We can't have this in config.h since that gets included too early. --- diff --git a/auth/pam.c b/auth/pam.c index 1561a8642..377f04bc2 100644 --- a/auth/pam.c +++ b/auth/pam.c @@ -73,6 +73,13 @@ #include "sudo.h" #include "sudo_auth.h" +/* Only OpenPAM and Linux PAM use const qualifiers. */ +#if defined(_OPENPAM) || defined(__LIBPAM_VERSION) +# define PAM_CONST const +#else +# define PAM_CONST +#endif + #ifndef lint static const char rcsid[] = "$Sudo$"; #endif /* lint */ diff --git a/config.h.in b/config.h.in index 8dfbaa692..9943f4baf 100644 --- a/config.h.in +++ b/config.h.in @@ -534,13 +534,6 @@ # define stat_sudoers lstat #endif -/* Only OpenPAM and Linux PAM use const qualifiers. */ -#if defined(_OPENPAM) || defined(__LIBPAM_VERSION) -# define PAM_CONST const -#else -# define PAM_CONST -#endif - #ifdef USE_EXECV # define EXECV execv #else diff --git a/configure.in b/configure.in index e12399ab3..6d83eab62 100644 --- a/configure.in +++ b/configure.in @@ -2184,13 +2184,6 @@ AH_BOTTOM([/* # define stat_sudoers lstat #endif -/* Only OpenPAM and Linux PAM use const qualifiers. */ -#if defined(_OPENPAM) || defined(__LIBPAM_VERSION) -# define PAM_CONST const -#else -# define PAM_CONST -#endif - #ifdef USE_EXECV # define EXECV execv #else