bus signal_handler: don't pretend to be portable away from Unix
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 29 Jun 2011 15:20:09 +0000 (16:20 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Aug 2011 13:39:24 +0000 (14:39 +0100)
commite90e7e9e7188c61ca06928e3c18a5db4eaf9dd27
tree557459328ada9780831b91e11202fb6d30017474
parent3cf9fa4dc76d9c85f8490b2437562672668d65d5
bus signal_handler: don't pretend to be portable away from Unix

Signals are POSIX but not ISO C, so guard it with DBUS_UNIX.

dbus-sysdeps-util-win doesn't actually implement _dbus_set_signal_handler
anyway, so not compiling this code on non-Unix seems more honest.

Backported to dbus-1.4, originally part of commit c7ef3ead558e147.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33336
Reviewed-by: Thiago Macieira <thiago@kde.org>
bus/main.c