diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2012-11-14 18:37:10 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-11-26 14:44:48 +0100 |
commit | ea594aef59ea4f3b587f3d156a6ee61e83a3d85d (patch) | |
tree | 52d2b0c6c2d65d3c8afacf01b9617ccc97628ef9 | |
parent | 70add69e9b3212a0f6e9ea27a1ecced2b871bd16 (diff) | |
download | connman-ea594aef59ea4f3b587f3d156a6ee61e83a3d85d.tar.gz connman-ea594aef59ea4f3b587f3d156a6ee61e83a3d85d.tar.bz2 connman-ea594aef59ea4f3b587f3d156a6ee61e83a3d85d.zip |
gdbus: Fix compilation error due to missing #defines
Since these are simple #define strings, we are defining it here
instead of upgrading to D-Bus 1.5 or later.
Log:
CC gdbus/object.o
gdbus/object.c: In function ‘properties_set’:
gdbus/object.c:876:7: error: ‘DBUS_ERROR_UNKNOWN_PROPERTY’ undeclared
(first use in this function)
gdbus/object.c:876:7: note: each undeclared identifier is reported
only once for each function it appears in
gdbus/object.c:881:6: error: ‘DBUS_ERROR_PROPERTY_READ_ONLY’
undeclared (first use in this function)
make[1]: *** [gdbus/object.o] Error 1
make: *** [all] Error 2
-rw-r--r-- | gdbus/object.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdbus/object.c b/gdbus/object.c index ec98c2ce..214fd841 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -39,6 +39,14 @@ #define DBUS_INTERFACE_OBJECT_MANAGER "org.freedesktop.DBus.ObjectManager" +#ifndef DBUS_ERROR_UNKNOWN_PROPERTY +#define DBUS_ERROR_UNKNOWN_PROPERTY "org.freedesktop.DBus.Error.UnknownProperty" +#endif + +#ifndef DBUS_ERROR_PROPERTY_READ_ONLY +#define DBUS_ERROR_PROPERTY_READ_ONLY "org.freedesktop.DBus.Error.PropertyReadOnly" +#endif + struct generic_data { unsigned int refcount; DBusConnection *conn; |