]> granicus.if.org Git - sudo/commitdiff
Move PAM_CONST macro definition from config.h to pam.c where it belongs.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 19:39:00 +0000 (19:39 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 19:39:00 +0000 (19:39 +0000)
We can't have this in config.h since that gets included too early.

auth/pam.c
config.h.in
configure.in

index 1561a8642cf87de3f997152de6ba2ec68d22aeb1..377f04bc217606e9413d5f5afdd2ca3fede31b06 100644 (file)
 #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 */
index 8dfbaa692a181eee341442d0f4c34522674fb461..9943f4baf6faed122562047af1cbb9c059c3b84d 100644 (file)
 # 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
index e12399ab3f22f10c042600dea0a4e3507f978a9d..6d83eab621afc1cc80a6987fbd2807588eb6cec5 100644 (file)
@@ -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