From 214e97e115ffc9f9cf56a3576be4bbcab95b07f7 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 28 Aug 2024 08:00:00 +0000 Subject: build: consistently include config.h unconditionally Given that in most places config.h is included unconditionally, there is no point in keeping remaining HAVE_CONFIG_H checks. Public header files do not use config.h and therefore are not affected by this change anyway. --- modules/pam_echo/pam_echo.c | 2 -- modules/pam_exec/pam_exec.c | 2 -- modules/pam_pwhistory/opasswd.c | 2 -- modules/pam_pwhistory/pam_pwhistory.c | 2 -- 4 files changed, 8 deletions(-) (limited to 'modules') diff --git a/modules/pam_echo/pam_echo.c b/modules/pam_echo/pam_echo.c index 6a7c2f64..5a882028 100644 --- a/modules/pam_echo/pam_echo.c +++ b/modules/pam_echo/pam_echo.c @@ -33,9 +33,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined(HAVE_CONFIG_H) #include "config.h" -#endif #include #include diff --git a/modules/pam_exec/pam_exec.c b/modules/pam_exec/pam_exec.c index c3ecb248..e328be16 100644 --- a/modules/pam_exec/pam_exec.c +++ b/modules/pam_exec/pam_exec.c @@ -33,9 +33,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined(HAVE_CONFIG_H) #include "config.h" -#endif #include #include diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c index d291761b..512688d1 100644 --- a/modules/pam_pwhistory/opasswd.c +++ b/modules/pam_pwhistory/opasswd.c @@ -34,9 +34,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined(HAVE_CONFIG_H) #include -#endif #include #include diff --git a/modules/pam_pwhistory/pam_pwhistory.c b/modules/pam_pwhistory/pam_pwhistory.c index e43bd9b2..6a720927 100644 --- a/modules/pam_pwhistory/pam_pwhistory.c +++ b/modules/pam_pwhistory/pam_pwhistory.c @@ -37,9 +37,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined(HAVE_CONFIG_H) #include -#endif #include #include -- cgit v1.2.3