dmraid: fixes for musl

This commit is contained in:
beefcurtains 2015-06-02 03:46:43 +00:00
parent 287df1a413
commit 65ff6f21c8
3 changed files with 22 additions and 1 deletions

View file

@ -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 <fcntl.h>
#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 <dirent.h>
# include <paths.h>
#else
+# include <paths.h>
# include <dirent.h>
# include <mntent.h>
#endif

View file

@ -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

View file

@ -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}"