diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2011-04-14 08:51:09 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-04-14 08:52:03 (GMT) |
commit | 25fe0f83759649af218ea7eecd849dc0a311afbc (patch) | |
tree | b47944516c7900bccb2d3af455a049335e0eec1b | |
parent | 8f08be2bd372c581d578ed81c2f57cf1adc0ae79 (diff) | |
download | Qt-25fe0f83759649af218ea7eecd849dc0a311afbc.zip Qt-25fe0f83759649af218ea7eecd849dc0a311afbc.tar.gz Qt-25fe0f83759649af218ea7eecd849dc0a311afbc.tar.bz2 |
Fix compilation if D-Bus 1.4 isn't present.
-rw-r--r-- | src/dbus/qdbusintegrator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp index aaf19cf..d6fbe80 100644 --- a/src/dbus/qdbusintegrator.cpp +++ b/src/dbus/qdbusintegrator.cpp @@ -1682,6 +1682,9 @@ static QDBusConnection::ConnectionCapabilities connectionCapabilies(DBusConnecti return result; # endif +#ifndef DBUS_TYPE_UNIX_FD +# define DBUS_TYPE_UNIX_FD int('h') +#endif if (q_dbus_connection_can_send_type(connection, DBUS_TYPE_UNIX_FD)) result |= QDBusConnection::UnixFileDescriptorPassing; #endif |