271aba5d0f
Due to the following dependency chain, it is currently not available in Alpine for armhf and armv7. This breaks postmarketos-base. postmarketos-base -> networkmanager -> polkit -> mozjs60 This can be reverted, when networkmanager is back for arm{hf,v7} in Alpine. The mozjs60 arm fix is from here: https://github.com/alpinelinux/aports/pull/7561 Related: #244
18 lines
609 B
Diff
18 lines
609 B
Diff
diff --git a/shared/systemd/src/basic/sort-util.h b/shared/systemd/src/basic/sort-util.h
|
|
index e029f86..935f136 100644
|
|
--- a/shared/systemd/src/basic/sort-util.h
|
|
+++ b/shared/systemd/src/basic/sort-util.h
|
|
@@ -5,6 +5,13 @@
|
|
|
|
#include "macro.h"
|
|
|
|
+#ifndef __COMPAR_FN_T
|
|
+# define __COMPAR_FN_T
|
|
+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
|
|
+
|
|
void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
|
|
__compar_d_fn_t compar, void *arg);
|
|
|