Fix building the package with GCC-4.8
authorGrzegorz Rynkowski <g.rynkowski@samsung.com>
Wed, 4 Sep 2013 08:56:19 +0000 (10:56 +0200)
committerGrzegorz Rynkowski <g.rynkowski@samsung.com>
Wed, 4 Sep 2013 09:13:17 +0000 (11:13 +0200)
[Problem]      The package cannot be built with gcc-4.8.
[Cause]        Missing #include statement.
[Solution]     Add the missing #include statement.
[Verification] Build package both with current (GCC-4.5) and new
(GCC-4.8) version of compiler.

Change-Id: Ic462ffa18b7a41983fc4843e78c56645cf4d5d7d

modules/widget_interface_dao/dao/widget_interface_dao.cpp

index 88e13ac..7bc61b7 100644 (file)
@@ -24,6 +24,7 @@
 #include <sstream>
 #include <fstream>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <dpl/db/sql_connection.h>
 #include <dpl/log/log.h>
 #include <dpl/foreach.h>