aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
commit214e97e115ffc9f9cf56a3576be4bbcab95b07f7 (patch)
treef41ea04025364fdb2701f3c510a51917ceec20f5 /modules
parent0b3eff364979e9281c1d4fd9a090bdab5fde0d67 (diff)
downloadpam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.gz
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.bz2
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.zip
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_echo/pam_echo.c2
-rw-r--r--modules/pam_exec/pam_exec.c2
-rw-r--r--modules/pam_pwhistory/opasswd.c2
-rw-r--r--modules/pam_pwhistory/pam_pwhistory.c2
4 files changed, 0 insertions, 8 deletions
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 <errno.h>
#include <stdio.h>
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 <time.h>
#include <errno.h>
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 <config.h>
-#endif
#include <pwd.h>
#include <shadow.h>
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 <config.h>
-#endif
#include <pwd.h>
#include <errno.h>