1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/partclone/musl.patch
2020-12-27 23:44:29 +00:00

27 lines
662 B
Diff

Author: Void Linux Package
URL: https://github.com/void-linux/void-packages/tree/master/srcpkgs/partclone/patches
Summary: Fixes musl compatibility
----
--- a/src/main.c
+++ b/src/main.c
@@ -20,7 +20,6 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
-#include <mcheck.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
--- a/src/btrfs/kernel-lib/rbtree.h.orig
+++ b/src/btrfs/kernel-lib/rbtree.h
@@ -38,6 +38,10 @@
extern "C" {
#endif
+#ifndef __always_inline
+#define __always_inline inline __attribute__((always_inline))
+#endif
+
struct rb_node {
unsigned long __rb_parent_color;
struct rb_node *rb_right;