Compatibility with GCC v 4.7 is required.
This commit fix problems with compilation with GCC 4.7.
[Issue#] N/A
[Bug] The repository causes build break with GCC 4.7
[Cause] N/A
[Solution] Source code adjusted to GCC 4.7
[Verification]
1. Build repository with GCC in current (4.5) and 4.7 version.
Change-Id: I8a0839e7a9d78b86c16f8feccecac3e3fbfd3ea0
* @brief Implementation file for installer task database updating for widget
* update
*/
+#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include <widget_install/task_database.h>
* @version 1.0
* @brief Implementation file for installer task database updating
*/
+#include <unistd.h>
#include <sys/stat.h>
#include <dirent.h>
#include <widget_install/task_file_manipulation.h>
*/
//SYSTEM INCLUDES
+#include <unistd.h>
#include <string>
#include <dpl/assert.h>
#include <dirent.h>
* @brief Copying plugins delivered in widget package.
*/
+#include <unistd.h>
#include "task_plugins_copy.h"
#include <dpl/log/log.h>
#include <dpl/string.h>
* @brief Implementation file for installer task update files
*/
+#include <unistd.h>
#include <utility>
#include <vector>
#include <string>
* @brief Implementation file for uninstaller task for removing widget files
*/
+#include <unistd.h>
#include <widget_uninstall/task_remove_files.h>
#include <widget_uninstall/job_widget_uninstall.h>
#include <widget_uninstall/uninstaller_context.h>
)
SET_TARGET_PROPERTIES(${TARGET_BACKEND_LIB} PROPERTIES
- LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl"
+ LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
)
INSTALL(TARGETS ${TARGET_BACKEND_LIB}
SET_TARGET_PROPERTIES(${TARGET_INSTALLER} PROPERTIES
- LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl"
+ LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
BUILD_WITH_INSTALL_RPATH ON
INSTALL_RPATH_USE_LINK_PATH ON
)
* @brief Header file for plugin util
*/
+#include <unistd.h>
#include "plugin_utils.h"
#include <dpl/exception.h>
#include <dpl/log/log.h>