summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in2
-rw-r--r--pam/gkr-pam-module.c7
2 files changed, 1 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 8d0e430c..447834c3 100644
--- a/configure.in
+++ b/configure.in
@@ -251,7 +251,7 @@ AC_ARG_ENABLE(pam,
pam_status="no"
if test "$enable_pam" != "no"; then
- AC_CHECK_HEADERS(security/pam_modules.h pam/pam_modules.h, have_pam=yes, have_pam=no)
+ AC_CHECK_HEADER(security/pam_modules.h, have_pam=yes, have_pam=no)
if test "$enable_pam" = "yes" -a "$have_pam" = "no"; then
AC_MSG_ERROR(The PAM headers are missing)
elif test "$have_pam" = "yes"; then
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c
index 5b8e4c5d..d6fc17d6 100644
--- a/pam/gkr-pam-module.c
+++ b/pam/gkr-pam-module.c
@@ -33,15 +33,8 @@
#include "daemon/control/gkd-control-codes.h"
-#ifdef HAVE_SECURITY_PAM_MODULES_H
#include <security/pam_appl.h>
#include <security/pam_modules.h>
-#else
-#ifdef HAVE_PAM_PAM_MODULES_H
-#include <pam/pam_appl.h>
-#include <pam/pam_modules.h>
-#endif
-#endif
#include <sys/types.h>
#include <sys/stat.h>