summaryrefslogtreecommitdiffstats
path: root/testing/lxdm/lxdm-nopam.patch
blob: 86c808fcb64be4c6470eec88db8243842c6705cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- lxdm-0.3.0/src/lxdm.c
+++ lxdm-0.3.0.mod/src/lxdm.c
@@ -152,6 +152,7 @@
     while( waitpid(-1, 0, WNOHANG) > 0 ) ;
 }
 
+#if HAVE_LIBPAM
 static void close_pam_session(pam_handle_t *pamh)
 {
     int err;
@@ -161,6 +162,7 @@
     pam_end(pamh, err);
     pamh = NULL;
 }
+#endif
 
 static LXSession *lxsession_find_greeter(void)
 {