Package: android-tools Version: 4.2.2+git20130529 Severity: normal Tag: -1 patch
This patch could support android-tools on mips64el, tested on mips64el device. Regards, Sphinx Jiang
diff -urN a/extras/ext4_utils/ext4_utils.c b/extras/ext4_utils/ext4_utils.c --- a/extras/ext4_utils/ext4_utils.c 2013-05-30 04:16:54.000000000 +0800 +++ b/extras/ext4_utils/ext4_utils.c 2014-06-14 19:35:21.884532619 +0800 @@ -14,6 +14,12 @@ * limitations under the License. */ +#if defined(__linux__) +#include <linux/fs.h> +#elif defined(__APPLE__) && defined(__MACH__) +#include <sys/disk.h> +#endif + #include "ext4_utils.h" #include "uuid.h" #include "allocate.h" @@ -35,12 +41,6 @@ #include <sys/ioctl.h> #endif -#if defined(__linux__) -#include <linux/fs.h> -#elif defined(__APPLE__) && defined(__MACH__) -#include <sys/disk.h> -#endif - #include "ext4.h" #include "jbd2.h" diff -urN a/extras/ext4_utils/wipe.c b/extras/ext4_utils/wipe.c --- a/extras/ext4_utils/wipe.c 2013-05-30 04:16:54.000000000 +0800 +++ b/extras/ext4_utils/wipe.c 2014-06-30 20:47:56.819322600 +0800 @@ -14,14 +14,15 @@ * limitations under the License. */ -#include "ext4_utils.h" -#include "wipe.h" #if defined(__linux__) - #include <linux/fs.h> #include <sys/ioctl.h> +#endif +#include "ext4_utils.h" +#include "wipe.h" +#if defined(__linux__) #ifndef BLKDISCARD #define BLKDISCARD _IO(0x12,119) #endif