aboutsummaryrefslogtreecommitdiffstats
path: root/community/networkmanager-elogind/musl-basic.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-02-03 08:49:33 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-02-03 12:07:41 +0100
commita2754bb6f6f152ac8e565d0b09698901a4fe4e10 (patch)
tree621f5cc81ffcde8d5674f86383208ef24eb27296 /community/networkmanager-elogind/musl-basic.patch
parentd419e3bf90cb1dad51fe04faa6e10207429c1a85 (diff)
downloadaports-a2754bb6f6f152ac8e565d0b09698901a4fe4e10.tar.bz2
aports-a2754bb6f6f152ac8e565d0b09698901a4fe4e10.tar.xz
community/networkmanager-elogind: new aport
https://wiki.gnome.org/Projects/NetworkManager Network Management daemon
Diffstat (limited to 'community/networkmanager-elogind/musl-basic.patch')
-rw-r--r--community/networkmanager-elogind/musl-basic.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/networkmanager-elogind/musl-basic.patch b/community/networkmanager-elogind/musl-basic.patch
new file mode 100644
index 0000000000..2e0d562d5a
--- /dev/null
+++ b/community/networkmanager-elogind/musl-basic.patch
@@ -0,0 +1,46 @@
+diff --git a/libnm-core/nm-json.c b/libnm-core/nm-json.c
+index aa181a4..98c39fc 100644
+--- a/libnm-core/nm-json.c
++++ b/libnm-core/nm-json.c
+@@ -23,6 +23,10 @@
+
+ #include <dlfcn.h>
+
++#ifndef RTLD_DEEPBIND
++#define RTLD_DEEPBIND 0
++#endif
++
+ void *_nm_jansson_json_object_iter_value;
+ void *_nm_jansson_json_object_key_to_iter;
+ void *_nm_jansson_json_integer;
+diff --git a/shared/systemd/src/basic/stdio-util.h b/shared/systemd/src/basic/stdio-util.h
+index c3b9448..e80a938 100644
+--- a/shared/systemd/src/basic/stdio-util.h
++++ b/shared/systemd/src/basic/stdio-util.h
+@@ -1,7 +1,9 @@
+ /* SPDX-License-Identifier: LGPL-2.1+ */
+ #pragma once
+
++#if defined(__GLIBC__)
+ #include <printf.h>
++#endif
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+diff --git a/shared/systemd/src/basic/util.h b/shared/systemd/src/basic/util.h
+index 25e6ab8..7967e8a 100644
+--- a/shared/systemd/src/basic/util.h
++++ b/shared/systemd/src/basic/util.h
+@@ -46,6 +46,12 @@ static inline unsigned u64log2(uint64_t n) {
+ #endif
+ }
+
++#if !defined(__GLIBC__)
++typedef int (*__compar_fn_t) (const void*, const void*);
++typedef __compar_fn_t comparison_fn_t;
++typedef int (*__compar_d_fn_t) (const void *, const void *, void *);
++#endif
++
+ static inline unsigned u32ctz(uint32_t n) {
+ #if __SIZEOF_INT__ == 4
+ return n != 0 ? __builtin_ctz(n) : 32;