summaryrefslogtreecommitdiff
blob: 339f2c9d60034799b65be3feb5efca9954d99147 (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
42
43
44
45
From 9b7f9272a5462e03daea0b316f9047e103866ed3 Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed, 6 May 2015 22:51:54 +0300
Subject: [PATCH] build: support linux-4

---
 loop-h-version.h   | 4 +++-
 loop.c-4.x.patched | 1 +
 loop.h-4.x.patched | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)
 create mode 120000 loop.c-4.x.patched
 create mode 120000 loop.h-4.x.patched

diff --git a/loop-h-version.h b/loop-h-version.h
index 8e6a734..84a538c 100644
--- a/loop-h-version.h
+++ b/loop-h-version.h
@@ -1,5 +1,7 @@
 #include <linux/version.h>
-#if LINUX_VERSION_CODE >= 0x30000
+#if LINUX_VERSION_CODE >= 0x40000
+# include "loop.h-4.x.patched"
+#elif LINUX_VERSION_CODE >= 0x30000
 # include "loop.h-3.x.patched"
 #elif LINUX_VERSION_CODE >= 0x20600
 # include "loop.h-2.6.patched"
diff --git a/loop.c-4.x.patched b/loop.c-4.x.patched
new file mode 120000
index 0000000..b6e51c3
--- /dev/null
+++ b/loop.c-4.x.patched
@@ -0,0 +1 @@
+loop.c-3.x.patched
\ No newline at end of file
diff --git a/loop.h-4.x.patched b/loop.h-4.x.patched
new file mode 120000
index 0000000..0924ecb
--- /dev/null
+++ b/loop.h-4.x.patched
@@ -0,0 +1 @@
+loop.h-3.x.patched
\ No newline at end of file
-- 
2.3.6