]> granicus.if.org Git - sudo/commitdiff
Only OpenPAM and Linux PAM use const qualifiers.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 06:18:10 +0000 (06:18 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 06:18:10 +0000 (06:18 +0000)
config.h.in
configure.in

index 11248c3026f6e66a7f103384252f3c027729d7f7..46769f5d4bf77ae86e7538f614ddd5efd47c9985 100644 (file)
 # 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
index 04f33748a0aa5ed63c4f8ba5aa2e6a60a6e8f3f3..637989b9b51823f2d5a4890482134f5e504f281d 100644 (file)
@@ -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