[Tracker] patch to make trunk build with sun compiler
- From: Jerry Tan <Jerry Tan Sun COM>
- To: Tracker-List <tracker-list gnome org>
- Subject: [Tracker] patch to make trunk build with sun compiler
- Date: Fri, 07 Nov 2008 18:09:53 +0800
__func__ and __PRETTY_FUNCTION__ are not supported by sun compiler,
add this patch to make it build.
Index: src/libtracker/tracker.h
===================================================================
--- src/libtracker/tracker.h (revision 2471)
+++ src/libtracker/tracker.h (working copy)
@@ -20,6 +20,10 @@
#ifndef TRACKER_H
#define TRACKER_H
+#ifndef __FUNCTION__
+#define __FUNCTION__ __func__
+#endif
+
G_BEGIN_DECLS
#include <dbus/dbus.h>
Index: src/trackerd/tracker-files.c
===================================================================
--- src/trackerd/tracker-files.c (revision 2471)
+++ src/trackerd/tracker-files.c (working copy)
@@ -480,7 +480,7 @@
tracker_dbus_request_failed (request_id,
&actual_error,
"%s not implemented yet",
- __PRETTY_FUNCTION__);
+ G_GNUC_PRETTY_FUNCTION);
dbus_g_method_return_error (context, actual_error);
g_error_free (actual_error);
}
Index: src/libtracker-db/tracker-db-index.c
===================================================================
--- src/libtracker-db/tracker-db-index.c (revision 2471)
+++ src/libtracker-db/tracker-db-index.c (working copy)
@@ -29,6 +29,7 @@
#include <glib/gstdio.h>
#include <libtracker-common/tracker-log.h>
+#include <libtracker-common/tracker-config.h>
#include <libtracker-common/tracker-file-utils.h>
#include <libtracker-db/tracker-db-manager.h>
Index: src/libtracker-common/tracker-config.h
===================================================================
--- src/libtracker-common/tracker-config.h (revision 2471)
+++ src/libtracker-common/tracker-config.h (working copy)
@@ -23,6 +23,9 @@
#ifndef __LIBTRACKER_COMMON_CONFIG_H__
#define __LIBTRACKER_COMMON_CONFIG_H__
+#ifndef __FUNCTION__
+#define __FUNCTION__ __func__
+#endif
#include <glib-object.h>
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]