Fix building the package with GCC-4.8
authorGrzegorz Rynkowski <g.rynkowski@samsung.com>
Wed, 4 Sep 2013 13:32:48 +0000 (15:32 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 4 Sep 2013 13:44:27 +0000 (13:44 +0000)
[Problem]      The package cannot be built with gcc-4.8.
[Cause]        Missing #include statements.
[Solution]     Add the missing #include statements.
[Verification] Build package both with current (GCC-4.5) and (GCC-4.8) version of compiler.

Change-Id: I9acb3034aee32ae1481315bf56673104506485a7

src/jobs/widget_install/directory_api.cpp
src/jobs/widget_install/task_certify.cpp

index a43b24c..5edcf4c 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <directory_api.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <dirent.h>
 #include <fstream>
 #include <dpl/log/log.h>
index a610cb6..1c3e75e 100644 (file)
@@ -24,6 +24,7 @@
 #include <cstring>
 #include <string>
 #include <sstream>
+#include <unistd.h>
 #include <dpl/assert.h>
 #include <appcore-common.h> //TODO is it necessary here?
 #include <pcrecpp.h>