From b106eabb4bbff5eed55dc7b47abf457a9871db09 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 9 Jan 2004 06:18:10 +0000 Subject: [PATCH] Only OpenPAM and Linux PAM use const qualifiers. --- config.h.in | 8 ++++---- configure.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.h.in b/config.h.in index 11248c302..46769f5d4 100644 --- a/config.h.in +++ b/config.h.in @@ -531,11 +531,11 @@ # define stat_sudoers lstat #endif -/* Solaris doesn't use const qualifiers in PAM. */ -#ifdef sun -# define PAM_CONST -#else +/* 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 diff --git a/configure.in b/configure.in index 04f33748a..637989b9b 100644 --- a/configure.in +++ b/configure.in @@ -2175,11 +2175,11 @@ AH_BOTTOM([/* # define stat_sudoers lstat #endif -/* Solaris doesn't use const qualifiers in PAM. */ -#ifdef sun -# define PAM_CONST -#else +/* 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 -- 2.50.1