summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch')
-rw-r--r--sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch b/sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch
new file mode 100644
index 000000000000..339f2c9d6003
--- /dev/null
+++ b/sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch
@@ -0,0 +1,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
+