sysdeps: Stop pretending _dbus_set_signal_handler is portable to Windows
authorSimon McVittie <smcv@collabora.com>
Wed, 27 Sep 2017 12:59:43 +0000 (13:59 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 27 Sep 2017 14:15:58 +0000 (15:15 +0100)
commit49446d4b362ec4d0205b60f4cf883cf7e97ecabc
tree5f1a6dcf89ad387f7971c14218d1c8a37036ba2a
parent3d538ced103c7955e6e62a72866e0f56cf3f52d6
sysdeps: Stop pretending _dbus_set_signal_handler is portable to Windows

None of the things we rely on in POSIX async signal handlers, such
as the existence of async-signal-safe write(), are portable to Windows,
so the async signal handlers that use this function are #ifdef
DBUS_UNIX anyway. Remove the unused stub function from the
Windows side, and move the declaration to the Unix-specific header.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103010
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
dbus/dbus-sysdeps-unix.h
dbus/dbus-sysdeps-util-win.c
dbus/dbus-sysdeps.h