summaryrefslogtreecommitdiff
path: root/legacy/edbus
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-09 08:47:59 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-09 08:47:59 +0000
commit9f188af2d8132e6dff9a546ad36d87170b714032 (patch)
tree682ab84f8a5776a0cad295d0ab54479d21377a49 /legacy/edbus
parent83e1c68da518aef2a030ac7f89a0b0606143c09f (diff)
edbus: check if DBUS_TYPE_UNIX_FD exists
SVN revision: 77629
Diffstat (limited to 'legacy/edbus')
-rw-r--r--legacy/edbus/src/lib/edbus_message.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/edbus/src/lib/edbus_message.c b/legacy/edbus/src/lib/edbus_message.c
index 0b77ad5f91..af2955fdd0 100644
--- a/legacy/edbus/src/lib/edbus_message.c
+++ b/legacy/edbus/src/lib/edbus_message.c
@@ -374,7 +374,9 @@ append_basic(char type, va_list *vl, DBusMessageIter *iter)
374 } 374 }
375 case DBUS_TYPE_BOOLEAN: 375 case DBUS_TYPE_BOOLEAN:
376 case DBUS_TYPE_INT32: 376 case DBUS_TYPE_INT32:
377#ifdef DBUS_TYPE_UNIX_FD
377 case DBUS_TYPE_UNIX_FD: 378 case DBUS_TYPE_UNIX_FD:
379#endif
378 { 380 {
379 int32_t int32 = va_arg(*vl, int32_t); 381 int32_t int32 = va_arg(*vl, int32_t);
380 return dbus_message_iter_append_basic(iter, type, &int32); 382 return dbus_message_iter_append_basic(iter, type, &int32);
@@ -571,7 +573,9 @@ get_basic(char type, DBusMessageIter *iter, va_list *vl)
571 break; 573 break;
572 } 574 }
573 case DBUS_TYPE_INT32: 575 case DBUS_TYPE_INT32:
576#ifdef DBUS_TYPE_UNIX_FD
574 case DBUS_TYPE_UNIX_FD: 577 case DBUS_TYPE_UNIX_FD:
578#endif
575 { 579 {
576 int32_t *int32 = va_arg(*vl, int32_t *); 580 int32_t *int32 = va_arg(*vl, int32_t *);
577 dbus_message_iter_get_basic(iter, int32); 581 dbus_message_iter_get_basic(iter, int32);