From b62b1a4117c1786a3053ce26de695a1f0199b7b7 Mon Sep 17 00:00:00 2001 From: Yuuki Galaxy Date: Wed, 15 Aug 2018 15:05:32 +0800 Subject: [PATCH] Fix two compiling errors on Linux. --- system/core/include/cutils/jstring.h | 2 ++ system/core/mkbootimg/unpackbootimg.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/system/core/include/cutils/jstring.h b/system/core/include/cutils/jstring.h index a342608..4a9e868 100644 --- a/system/core/include/cutils/jstring.h +++ b/system/core/include/cutils/jstring.h @@ -20,6 +20,8 @@ #include #include +#define char16_t uint16_t + #ifdef __cplusplus extern "C" { #endif diff --git a/system/core/mkbootimg/unpackbootimg.c b/system/core/mkbootimg/unpackbootimg.c index 7badcb4..718dead 100755 --- a/system/core/mkbootimg/unpackbootimg.c +++ b/system/core/mkbootimg/unpackbootimg.c @@ -11,6 +11,9 @@ #ifdef _WIN32 #include +#else +#include +#include #endif #define CMDLINE_SUFFIX "-cmdline"