void-packages/srcpkgs/partclone/patches/musl.patch
2015-07-19 02:07:25 +00:00

34 lines
716 B
Diff

--- src/main.c.orig
+++ 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>
--- src/exfat/platform.h.orig
+++ src/exfat/platform.h
@@ -24,7 +24,7 @@
#ifndef PLATFORM_H_INCLUDED
#define PLATFORM_H_INCLUDED
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || 1
#include <endian.h>
#include <byteswap.h>
--- src/btrfs/rbtree.h.orig
+++ 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;