From 65ff6f21c834745cf1f0807c59eb9b9fa434ec3f Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Tue, 2 Jun 2015 03:46:43 +0000 Subject: [PATCH] dmraid: fixes for musl --- srcpkgs/dmraid/patches/25_musl-libc.patch | 20 ++++++++++++++++++++ srcpkgs/dmraid/patches/series | 1 + srcpkgs/dmraid/template | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dmraid/patches/25_musl-libc.patch diff --git a/srcpkgs/dmraid/patches/25_musl-libc.patch b/srcpkgs/dmraid/patches/25_musl-libc.patch new file mode 100644 index 0000000000..6b86c454da --- /dev/null +++ b/srcpkgs/dmraid/patches/25_musl-libc.patch @@ -0,0 +1,20 @@ +--- 1.0.0.rc16-3/dmraid/include/dmraid/misc.h.orig ++++ 1.0.0.rc16-3/dmraid/include/dmraid/misc.h +@@ -10,6 +10,7 @@ + + #ifndef _MISC_H_ + #define _MISC_H_ ++#include + + #define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0); + +--- 1.0.0.rc16-3/dmraid/lib/device/scan.c.orig ++++ 1.0.0.rc16-3/dmraid/lib/device/scan.c +@@ -10,6 +10,7 @@ + # include + # include + #else ++# include + # include + # include + #endif diff --git a/srcpkgs/dmraid/patches/series b/srcpkgs/dmraid/patches/series index 5d7281b0e3..5853191359 100644 --- a/srcpkgs/dmraid/patches/series +++ b/srcpkgs/dmraid/patches/series @@ -3,3 +3,4 @@ 17_isw-probe-hpa.patch 15_activate_multiple_raid_sets.patch 20_fix_isw_sectors_calculation.patch +25_musl-libc.patch diff --git a/srcpkgs/dmraid/template b/srcpkgs/dmraid/template index 183a7b5d3f..0c08ad4d6c 100644 --- a/srcpkgs/dmraid/template +++ b/srcpkgs/dmraid/template @@ -2,7 +2,7 @@ pkgname=dmraid _distver=1.0.0.rc16 _patchver=3 -revision=7 +revision=8 version="${_distver}.${_patchver}" wrksrc="${pkgname}" build_wrksrc="${_distver}-${_patchver}/${pkgname}"