Fix Build errors 01/10901/1 accepted/tizen/20131015.102333 submit/tizen/20131015.045100 submit/tizen/20131015.055611 submit/tizen/20131015.071724
authorHoseon LEE <hoseon46.lee@samsung.com>
Mon, 14 Oct 2013 12:04:24 +0000 (21:04 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Tue, 15 Oct 2013 04:47:39 +0000 (13:47 +0900)
1. LIVEBOX build option is added for livebox codes
2. Header including is added

Change-Id: I1748f2c1a2782e33770d4ce8cb203aab26d555a6

src/jobs/widget_install/task_configuration.cpp
src/jobs/widget_install/task_process_config.cpp

index 978a9af..e4a21a7 100644 (file)
@@ -30,6 +30,7 @@
 #include <limits.h>
 #include <regex.h>
 #include <vconf.h>
+#include <unistd.h>
 
 #include <dpl/utils/wrt_utility.h>
 #include <dpl/utils/path.h>
index 57958eb..f84e32e 100755 (executable)
 #include <widget_install/widget_install_context.h>
 #include <widget_install/widget_install_errors.h>
 #include <widget_parser.h>
+#ifdef LIVEBOX
 #include <web_provider_plugin_info.h>
 #include <web_provider_livebox_info.h>
+#endif // LIVEBOX
 #include <manifest.h>
 
 #include <installer_log.h>
@@ -475,6 +477,7 @@ void TaskProcessConfig::StepVerifyFeatures()
 
 void TaskProcessConfig::StepVerifyLivebox()
 {
+#ifdef LIVEBOX
     using namespace WrtDB;
     ConfigParserData &data = m_installContext.widgetConfig.configInfo;
     ConfigParserData::LiveboxList liveBoxList = data.m_livebox;
@@ -522,6 +525,7 @@ void TaskProcessConfig::StepVerifyLivebox()
             ThrowMsg(Exceptions::WidgetConfigFileInvalid, "Invalid boxSize");
         }
     }
+#endif // LIVEBOX
 }
 
 bool TaskProcessConfig::isFeatureAllowed(WrtDB::AppType appType,