Attached patch is against PolicyKit 0.9 
Applies to src/polkit-dbus/polkit-resolve-exe-helper.c -- adds a
HAVE_PAM ifdef wrapper around the <security/pam_appl.h> include.
Quite possibly, the include can be removed completely, but since I
can't say for sure, I went the ifdef route.

-RW

diff -Nur PolicyKit-0.9.orig/src/polkit-dbus/polkit-resolve-exe-helper.c PolicyKit-0.9/src/polkit-dbus/polkit-resolve-exe-helper.c
--- PolicyKit-0.9.orig/src/polkit-dbus/polkit-resolve-exe-helper.c	2008-05-30 16:24:44.000000000 -0500
+++ PolicyKit-0.9/src/polkit-dbus/polkit-resolve-exe-helper.c	2008-12-01 21:40:30.166413185 -0600
@@ -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>

Attachment: signature.asc
Description: PGP signature

_______________________________________________
polkit-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/polkit-devel

Reply via email to