Apply GCC 4.8 patch
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 3 Jul 2013 04:25:38 +0000 (13:25 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 3 Jul 2013 04:25:38 +0000 (13:25 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] N/A
[problem] GCC 4.8 build error
[cause] GCC 4.8 has some changes.
[solution] Apply patch.
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I4debfdb1c0782d892d6f0d30333044580be8e486

src/lb.c
src/main.c

index cef2511..945b05e 100644 (file)
--- a/src/lb.c
+++ b/src/lb.c
@@ -293,7 +293,7 @@ static inline int is_pended_item(struct item *item)
        return (in_item == item);
 }
 
-static inline int append_pending_list(struct item *item)
+static int append_pending_list(struct item *item)
 {
        if (pd_is_opened(item->inst->item->pkgname) == 1) {
                if (eina_list_data_find(s_info.pd_open_pending_list, item) == item) {
index de77d0b..22600d3 100644 (file)
@@ -347,7 +347,14 @@ static void app_service(service_h service, void *data)
        return;
 }
 
-void (*__malloc_initialize_hook)(void) = heap_monitor_init;
+/* From GNU libc 2.14 this macro is defined, to declare
+   hook variables as volatile. Define it as empty for
+   older glibc versions */
+#ifndef __MALLOC_HOOK_VOLATILE
+     #define __MALLOC_HOOK_VOLATILE
+#endif
+
+void (*__MALLOC_HOOK_VOLATILE __malloc_initialize_hook)(void) = heap_monitor_init;
 
 #if defined(_ENABLE_MCHECK)
 static inline void mcheck_cb(enum mcheck_status status)