summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2012-11-24 17:57:41 +0400
committerVlad Glagolev2012-11-24 17:57:41 +0400
commitbfeb69ced03077ae049ba64504f4e47a5d8517a1 (patch)
tree48895bd4be7591eedfaa1f074f7095d21927f830
parent2187f59e3f1ab47393603551869d12a6441a98e8 (diff)
udisks2: fixed build with older kernel headers
-rw-r--r--disk/udisks2/HISTORY4
-rwxr-xr-xdisk/udisks2/PRE_BUILD4
-rw-r--r--disk/udisks2/loop-ctl.patch16
3 files changed, 24 insertions, 0 deletions
diff --git a/disk/udisks2/HISTORY b/disk/udisks2/HISTORY
index 4fecb94d55..53be92d3c5 100644
--- a/disk/udisks2/HISTORY
+++ b/disk/udisks2/HISTORY
@@ -1,3 +1,7 @@
+2012-11-24 Vlad Glagolev <stealth@sourcemage.org>
+ * PRE_BUILD: added, to apply the patch
+ * loop-ctl.patch: added, to fix build with kernel headers before 26.07.11
+
2012-10-05 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: 2.0.0
diff --git a/disk/udisks2/PRE_BUILD b/disk/udisks2/PRE_BUILD
new file mode 100755
index 0000000000..cec3d9f9c8
--- /dev/null
+++ b/disk/udisks2/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/loop-ctl.patch"
diff --git a/disk/udisks2/loop-ctl.patch b/disk/udisks2/loop-ctl.patch
new file mode 100644
index 0000000000..3fc174898b
--- /dev/null
+++ b/disk/udisks2/loop-ctl.patch
@@ -0,0 +1,16 @@
+--- src/udiskslinuxmanager.h.orig 2011-10-10 22:13:43.000000000 +0400
++++ src/udiskslinuxmanager.h 2012-11-24 17:52:35.021912864 +0400
+@@ -23,6 +23,13 @@
+
+ #include "udisksdaemontypes.h"
+
++/* /dev/loop-control interface */
++#ifndef LOOP_CTL_ADD
++# define LOOP_CTL_ADD 0x4C80
++# define LOOP_CTL_REMOVE 0x4C81
++# define LOOP_CTL_GET_FREE 0x4C82
++#endif
++
+ G_BEGIN_DECLS
+
+ #define UDISKS_TYPE_LINUX_MANAGER (udisks_linux_manager_get_type ())