summaryrefslogtreecommitdiffstats
path: root/package/vboot-utils/0001-mtd-char-major.patch
blob: 9db90b25db56f47134e0fa2db7844a617cf36ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This definition missing from <linux/major.h> for kernels <= 3.13.

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>

--- a/cgpt/cgpt_wrapper.c
+++ b/cgpt/cgpt_wrapper.c
@@ -25,6 +25,10 @@
 #include "cgpt_nor.h"
 #include "cryptolib.h"
 
+#ifndef MTD_CHAR_MAJOR
+#define MTD_CHAR_MAJOR 90
+#endif
+
 // Check if cmdline |argv| has "-D". "-D" signifies that GPT structs are stored
 // off device, and hence we should not wrap around cgpt.
 static bool has_dash_D(int argc, const char *const argv[]) {
OpenPOWER on IntegriCloud