mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 07:02:29 +01:00
42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
Usual fix for musl libc
|
|
--- a/shared/systemd/src/basic/stdio-util.h
|
|
+++ b/shared/systemd/src/basic/stdio-util.h
|
|
@@ -19,7 +19,9 @@
|
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
***/
|
|
|
|
+#if defined(__GLIBC__)
|
|
#include <printf.h>
|
|
+#endif
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
--- a/shared/systemd/src/basic/util.h
|
|
+++ b/shared/systemd/src/basic/util.h
|
|
@@ -46,6 +46,12 @@
|
|
#include "missing.h"
|
|
#include "time-util.h"
|
|
|
|
+#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
|
|
+
|
|
size_t page_size(void) _pure_;
|
|
#define PAGE_ALIGN(l) ALIGN_TO((l), page_size())
|
|
|
|
--- 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;
|