diff options
author | Vsevolod Buzinov <ext-vsevolod.buzinov@nokia.com> | 2010-08-31 16:43:40 +0300 |
---|---|---|
committer | Vsevolod Buzinov <ext-vsevolod.buzinov@nokia.com> | 2010-08-31 16:43:40 +0300 |
commit | 6f6362a25527edd2f783962bfdbb7ea52a7b1925 (patch) | |
tree | 3a9d509b226ac5a88c7763d84805f1ed059fc984 /src/dbus-proto.c | |
parent | 89ef91dfc9df7db546821dd8d4f56dacaa7f8461 (diff) |
With this change libresource builds successfully without aegis also
Diffstat (limited to 'src/dbus-proto.c')
-rw-r--r-- | src/dbus-proto.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dbus-proto.c b/src/dbus-proto.c index 511b8df..42283b8 100644 --- a/src/dbus-proto.c +++ b/src/dbus-proto.c @@ -8,8 +8,9 @@ #include "dbus-proto.h" #include "dbus-msg.h" +#ifdef LIBRESOURCE_AEGIS #include <sys/creds.h> - +#endif /* * local function prototypes @@ -581,16 +582,17 @@ static DBusHandlerResult manager_method(DBusConnection *dcon, resset_t *rset; char *method; - char creds_buf[200]; int has_creds = 1; + resmsg_t reply; + int success; +#ifdef LIBRESOURCE_AEGIS + char creds_buf[200]; int pid; creds_t creds; int res; const char *security_token = "Cellular"; const char *name; - resmsg_t reply; - int success; - +#endif if (!strcmp(interface, RESPROTO_DBUS_MANAGER_INTERFACE) && type == DBUS_MESSAGE_TYPE_METHOD_CALL && @@ -626,7 +628,7 @@ static DBusHandlerResult manager_method(DBusConnection *dcon, resmsg.record.rset.share, resmsg.record.rset.mask); - +#ifdef LIBRESOURCE_AEGIS printf("resmsg.record.klass: %s\n", resmsg.record.klass); if (!strcmp(resmsg.record.klass, "call")) { @@ -676,7 +678,7 @@ static DBusHandlerResult manager_method(DBusConnection *dcon, creds_free(creds); } - +#endif if (rset != NULL && watch_client(&rcon->dbus, sender, TRUE)) { |