Browse code

auth-pam change: link with -lpam rather than dlopen (Roy Marples).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1421 e7ae566f-a301-0410-adde-c780ea21d3b5

james authored on 2006/11/01 13:58:01
Showing 2 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 # If PAM modules are not linked against libpam.so, set DLOPEN_PAM to 1. This
6 6
 # must be done on SUSE 9.1, at least.
7
-DLOPEN_PAM=1
7
+DLOPEN_PAM=0
8 8
 
9 9
 ifeq ($(DLOPEN_PAM),1)
10 10
 	LIBPAM=-ldl
... ...
@@ -10,7 +10,6 @@
10 10
 #include <stdio.h>
11 11
 #include <dlfcn.h>
12 12
 #include <security/pam_appl.h>
13
-#include <security/_pam_macros.h>
14 13
 
15 14
 #include "pamdl.h"
16 15
 
... ...
@@ -74,7 +73,7 @@ int pam_set_item(pam_handle_t *pamh, int item_type, const void *item)
74 74
     return real_pam_set_item(pamh, item_type, item);
75 75
 }
76 76
 
77
-int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item)
77
+int pam_get_item(pam_handle_t *pamh, int item_type, const void **item)
78 78
 {
79 79
     int (*real_pam_get_item)(const pam_handle_t *, int, const void **);
80 80
     RESOLVE_PAM_FUNCTION(pam_get_item, int,