| 1 | diff -u -r ../strace-4.9/mtd.c ./mtd.c |
| 2 | --- ../strace-4.9/mtd.c 2014-05-30 18:10:21.000000000 -0400 |
| 3 | +++ ./mtd.c 2014-12-21 14:52:21.111659855 -0500 |
| 4 | @@ -30,12 +30,12 @@ |
| 5 | |
| 6 | /* The mtd api changes quickly, so we have to keep a local copy */ |
| 7 | #include <linux/version.h> |
| 8 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) |
| 9 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)) || defined __ANDROID__ |
| 10 | # include "mtd-abi.h" |
| 11 | #else |
| 12 | # include <mtd/mtd-abi.h> |
| 13 | #endif |
| 14 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0) |
| 15 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)) || defined __ANDROID__ |
| 16 | # include "ubi-user.h" |
| 17 | #else |
| 18 | # include <mtd/ubi-user.h> |