void-packages/srcpkgs/partclone/patches/0001-musl.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

40 lines
980 B
Diff

From 3ea1aa99242204e3c1841ac11d9f7064591d3bff Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sun, 15 Nov 2020 18:53:54 -0600
Subject: [PATCH] musl
---
src/btrfs/kernel-lib/rbtree.h | 4 ++++
src/main.c | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git src/btrfs/kernel-lib/rbtree.h src/btrfs/kernel-lib/rbtree.h
index 6d68907..affab1d 100644
--- a/src/btrfs/kernel-lib/rbtree.h
+++ 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;
diff --git src/main.c src/main.c
index babcf0c..8a543f3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,7 +22,6 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
-#include <mcheck.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
--
2.29.2