28 lines
673 B
Diff
28 lines
673 B
Diff
Usual fix for musl libc
|
|
--- src/systemd/src/basic/stdio-util.h.orig
|
|
+++ src/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>
|
|
--- src/systemd/src/basic/util.h.orig
|
|
+++ src/systemd/src/basic/util.h
|
|
@@ -46,6 +46,11 @@
|
|
#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;
|
|
+#endif
|
|
+
|
|
size_t page_size(void) _pure_;
|
|
#define PAGE_ALIGN(l) ALIGN_TO((l), page_size())
|
|
|