aboutsummaryrefslogtreecommitdiff
path: root/package/eudev/0003-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
blob: 305ec4353ae01b9c1fdb68748e8411b29a5e888a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 6740579367ddd2ce0b315863cdb92d34d1d693c7 Mon Sep 17 00:00:00 2001
From: "Anthony G. Basile" <blueness@gentoo.org>
Date: Sun, 16 Nov 2014 13:40:43 -0500
Subject: [PATCH] configure.ac: don't die on missing linux/btrfs.h, fixes issue
 #100

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>

Taken from upstream commit 6740579367d.

Signed-off-by: Alexey Mednyy <swexru@gmail.com>
---
 configure.ac | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a3747f9..dbca833 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,11 +49,17 @@ AC_CHECK_HEADERS(
 )
 
 AC_CHECK_HEADERS(
-	[linux/btrfs.h mtd/mtd-user.h],
+	[mtd/mtd-user.h],
 	[],
 	[AC_MSG_ERROR([*** KERNEL header not found])]
 )
 
+AC_CHECK_HEADERS(
+	[linux/btrfs.h],
+	[],
+	[AC_MSG_WARN([*** KERNEL header not found])]
+)
+
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_UID_T
 AC_C_INLINE
-- 
1.9.1