aboutsummaryrefslogtreecommitdiff
path: root/testing/partclone/musl.patch
blob: 322b84d51c95b0fea72804d71957e0325d219d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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/rbtree.h.orig
+++ b/src/btrfs/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;