summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2012-04-29 22:51:33 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-04-30 10:16:17 +0200
commit00bf241a99aab5003993fb2107d72f02b7377470 (patch)
tree06d01a8584d2629553bb1daee714ab07040536fc /meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch
parent8f9b2e3a102e66426ce5b269a6827fc6a3218bef (diff)
downloadast2050-yocto-openembedded-00bf241a99aab5003993fb2107d72f02b7377470.zip
ast2050-yocto-openembedded-00bf241a99aab5003993fb2107d72f02b7377470.tar.gz
ubi-utils-klibc: initial commit of version 1.4.9
* Initially only ubiattach was targeted (for kexecboot project). * Based on klibc_1.5.25, will be revised once new klibc is out. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch')
-rw-r--r--meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch
new file mode 100644
index 0000000..f32fb70
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch
@@ -0,0 +1,24 @@
+--- a/lib/libmtd.c 2012-04-29 21:44:52.000000000 +0200
++++ b/lib/libmtd.c 2012-04-29 21:43:04.000000000 +0200
+@@ -441,8 +441,8 @@
+ return -1;
+ }
+
+- major = major(st.st_rdev);
+- minor = minor(st.st_rdev);
++ major = __major(st.st_rdev);
++ minor = __minor(st.st_rdev);
+
+ if (mtd_get_info((libmtd_t *)lib, &info))
+ return -1;
+@@ -1381,8 +1381,8 @@
+ return -1;
+ }
+
+- major = major(st.st_rdev);
+- minor = minor(st.st_rdev);
++ major = __major(st.st_rdev);
++ minor = __minor(st.st_rdev);
+
+ if (mtd_get_info((libmtd_t *)lib, &info))
+ return -1;
OpenPOWER on IntegriCloud