From: Jihoon Kim Date: Mon, 23 Feb 2015 04:54:41 +0000 (+0900) Subject: Support conditional build for no pkgmgr-info environment X-Git-Tag: accepted/tizen/mobile/20150223.094047~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4846540a20e19dcd0c3e67b551b47d9fbb3611c6;p=platform%2Fcore%2Fuifw%2Fisf.git Support conditional build for no pkgmgr-info environment Change-Id: I64816e81bcadef7c7ec0712298047ec1572bf673 --- diff --git a/ism/src/ise_preexec.cpp b/ism/src/ise_preexec.cpp index 837a66d..dd5ac86 100644 --- a/ism/src/ise_preexec.cpp +++ b/ism/src/ise_preexec.cpp @@ -33,7 +33,9 @@ #include #include #include +#if HAVE_PKGMGR_INFO #include +#endif #include #define Uses_SCIM_HELPER @@ -349,11 +351,12 @@ typedef struct { static void get_pkginfo (const char *helper, const char *uuid, PKGINFO *info) { +#if HAVE_PKGMGR_INFO if (helper && uuid && info) { pkgmgrinfo_appinfo_h handle; int r; - char *value; - const char *app_id; + char *value = NULL; + const char *app_id = NULL; if (!strcmp (helper, "ise-web-helper-agent")) { // Web IME @@ -409,6 +412,7 @@ static void get_pkginfo (const char *helper, const char *uuid, PKGINFO *info) pkgmgrinfo_appinfo_destroy_appinfo (handle); } +#endif } int ise_preexec (const char *helper, const char *uuid)