dbus: bump to version 1.10.14
[buildroot-gz.git] / package / dmraid / 0001-fix-compilation-under-musl.patch
blob7cf8792862552f110e5c0586d9ba2aff7fe81e58
1 From 89c7fc15e064dd407e6d5ccefe78985b86b8a036 Mon Sep 17 00:00:00 2001
2 From: Brendan Heading <brendanheading@gmail.com>
3 Date: Tue, 1 Sep 2015 12:26:36 +0100
4 Subject: [PATCH 1/1] fix compilation under musl
6 Patch borrowed from Void Linux :
8 https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dmraid/patches/25_musl-libc.patch
10 Upstream package appears dormant, no mailing list and no
11 maintainence releases since Nov 2010.
13 Upstream-Status: dormant
14 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
16 ---
17 1.0.0.rc16-3/dmraid/include/dmraid/misc.h | 1 +
18 1.0.0.rc16-3/dmraid/lib/device/scan.c | 1 +
19 2 files changed, 2 insertions(+)
21 diff --git a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
22 index 247a68e..1b1dfdf 100644
23 --- a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
24 +++ b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
25 @@ -10,6 +10,7 @@
27 #ifndef _MISC_H_
28 #define _MISC_H_
29 +#include <fcntl.h>
31 #define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0);
33 diff --git a/1.0.0.rc16-3/dmraid/lib/device/scan.c b/1.0.0.rc16-3/dmraid/lib/device/scan.c
34 index a040d53..6897146 100644
35 --- a/1.0.0.rc16-3/dmraid/lib/device/scan.c
36 +++ b/1.0.0.rc16-3/dmraid/lib/device/scan.c
37 @@ -10,6 +10,7 @@
38 # include <dirent.h>
39 # include <paths.h>
40 #else
41 +# include <paths.h>
42 # include <dirent.h>
43 # include <mntent.h>
44 #endif
45 --
46 2.4.3