31 lines
876 B
Diff
31 lines
876 B
Diff
From 90ed7f5cbe088912fbe0f3f45606de75602c1404 Mon Sep 17 00:00:00 2001
|
|
From: Alex Suykov <alex.suykov@gmail.com>
|
|
Date: Thu, 21 Jan 2016 21:59:46 +0100
|
|
Subject: [PATCH] Add missing definition of MTD_CHAR_MAJOR
|
|
|
|
This definition missing from <linux/major.h> for kernels <= 3.13
|
|
|
|
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
|
|
---
|
|
cgpt/cgpt_wrapper.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/cgpt/cgpt_wrapper.c b/cgpt/cgpt_wrapper.c
|
|
index afa4940e..38504aa6 100644
|
|
--- a/cgpt/cgpt_wrapper.c
|
|
+++ b/cgpt/cgpt_wrapper.c
|
|
@@ -33,6 +33,10 @@
|
|
#include "cgpt_nor.h"
|
|
#include "file_keys.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[]) {
|
|
--
|
|
2.34.1
|
|
|