You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-fs/loop-aes/files/loop-aes-3.7c-linux4.patch

46 lines
1.2 KiB

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