aboutsummaryrefslogtreecommitdiff
path: root/plugin/auth-pam
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/auth-pam')
-rwxr-xr-xplugin/auth-pam/Makefile2
-rw-r--r--plugin/auth-pam/pamdl.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugin/auth-pam/Makefile b/plugin/auth-pam/Makefile
index 3e7c6ce..e69fe3f 100755
--- a/plugin/auth-pam/Makefile
+++ b/plugin/auth-pam/Makefile
@@ -4,7 +4,7 @@
# If PAM modules are not linked against libpam.so, set DLOPEN_PAM to 1. This
# must be done on SUSE 9.1, at least.
-DLOPEN_PAM=1
+DLOPEN_PAM=0
ifeq ($(DLOPEN_PAM),1)
LIBPAM=-ldl
diff --git a/plugin/auth-pam/pamdl.c b/plugin/auth-pam/pamdl.c
index aaac240..8636a8e 100644
--- a/plugin/auth-pam/pamdl.c
+++ b/plugin/auth-pam/pamdl.c
@@ -10,7 +10,6 @@
#include <stdio.h>
#include <dlfcn.h>
#include <security/pam_appl.h>
-#include <security/_pam_macros.h>
#include "pamdl.h"
@@ -74,7 +73,7 @@ int pam_set_item(pam_handle_t *pamh, int item_type, const void *item)
return real_pam_set_item(pamh, item_type, item);
}
-int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item)
+int pam_get_item(pam_handle_t *pamh, int item_type, const void **item)
{
int (*real_pam_get_item)(const pam_handle_t *, int, const void **);
RESOLVE_PAM_FUNCTION(pam_get_item, int,