mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
polkit: try to unbreak musl build (take 2).
This commit is contained in:
parent
9d3eff4747
commit
4d0b776d6c
2 changed files with 38 additions and 1 deletions
|
@ -40,3 +40,40 @@
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_warning ("Unsupported identity");
|
g_warning ("Unsupported identity");
|
||||||
|
--- src/polkitbackend/polkitbackendjsauthority.c.orig 2015-05-08 10:26:51.509181105 +0200
|
||||||
|
+++ src/polkitbackend/polkitbackendjsauthority.c 2015-05-08 10:27:41.357159439 +0200
|
||||||
|
@@ -180,13 +180,17 @@ static JSClass js_polkit_class = {
|
||||||
|
|
||||||
|
static JSBool js_polkit_log (JSContext *cx, unsigned argc, jsval *vp);
|
||||||
|
static JSBool js_polkit_spawn (JSContext *cx, unsigned argc, jsval *vp);
|
||||||
|
+#if defined HAVE_GETNETGRENT
|
||||||
|
static JSBool js_polkit_user_is_in_netgroup (JSContext *cx, unsigned argc, jsval *vp);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
static JSFunctionSpec js_polkit_functions[] =
|
||||||
|
{
|
||||||
|
JS_FS("log", js_polkit_log, 0, 0),
|
||||||
|
JS_FS("spawn", js_polkit_spawn, 0, 0),
|
||||||
|
+#if defined HAVE_GETNETGRENT
|
||||||
|
JS_FS("_userIsInNetGroup", js_polkit_user_is_in_netgroup, 0, 0),
|
||||||
|
+#endif
|
||||||
|
JS_FS_END
|
||||||
|
};
|
||||||
|
|
||||||
|
@@ -1441,6 +1445,7 @@ js_polkit_spawn (JSContext *cx,
|
||||||
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
|
+#if defined HAVE_GETNETGRENT
|
||||||
|
static JSBool
|
||||||
|
js_polkit_user_is_in_netgroup (JSContext *cx,
|
||||||
|
unsigned argc,
|
||||||
|
@@ -1477,7 +1482,7 @@ js_polkit_user_is_in_netgroup (JSContext
|
||||||
|
out:
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Template file for 'polkit'
|
# Template file for 'polkit'
|
||||||
pkgname=polkit
|
pkgname=polkit
|
||||||
version=0.112
|
version=0.112
|
||||||
revision=10
|
revision=10
|
||||||
|
|
Loading…
Add table
Reference in a new issue