summaryrefslogtreecommitdiffstats
path: root/patches/PolicyKit-0.9/PolicyKit-0.9-pam-when-disabled.diff
blob: 912dbd6b86a723a54a6c6c9855af6424cd66f9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: [patch] compiling without pam doesn't work

When compiled with --with-authfw=none, I get

polkit-resolve-exe-helper.c:46:31: error: security/pam_appl.h: No such file or directory

The patch below fixes it.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>

---
 src/polkit-dbus/polkit-resolve-exe-helper.c |    2 ++
 1 file changed, 2 insertions(+)

Index: PolicyKit-0.9/src/polkit-dbus/polkit-resolve-exe-helper.c
===================================================================
--- PolicyKit-0.9.orig/src/polkit-dbus/polkit-resolve-exe-helper.c
+++ PolicyKit-0.9/src/polkit-dbus/polkit-resolve-exe-helper.c
@@ -43,7 +43,9 @@
 #ifdef HAVE_FREEBSD
 #include <sys/param.h>
 #endif
+#ifdef HAVE_PAM
 #include <security/pam_appl.h>
+#endif
 #include <grp.h>
 #include <pwd.h>
 #include <syslog.h>