Clarify which files are Unix-specific

dbus-spawn.c and dbus-userdb* don't have obviously-Unix-specific names,
but are Unix-specific anyway.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104588
This commit is contained in:
Simon McVittie 2018-01-12 14:09:59 +00:00
parent 2c9d7a6657
commit a0ac652117
3 changed files with 20 additions and 0 deletions

View file

@ -24,6 +24,13 @@
#include <config.h>
/* It isn't obvious from its name, but this file is part of the Unix
* system-dependent part of libdbus. Windows has a parallel
* implementation in dbus-spawn-win.c. */
#if defined(DBUS_WIN) || !defined(DBUS_UNIX)
#error "This file only makes sense on Unix OSs"
#endif
#include "dbus-spawn.h"
#include "dbus-sysdeps-unix.h"
#include "dbus-internals.h"

View file

@ -30,6 +30,12 @@
#include <dbus/dbus-test-tap.h>
#include <string.h>
/* It isn't obvious from its name, but this file is part of the Unix
* system-dependent part of libdbus. */
#if defined(DBUS_WIN) || !defined(DBUS_UNIX)
#error "This file only makes sense on Unix OSs"
#endif
#ifdef HAVE_SYSTEMD
#include <systemd/sd-login.h>
#endif

View file

@ -30,6 +30,13 @@
#include "dbus-credentials.h"
#include <string.h>
/* It isn't obvious from its name, but this file is part of the Unix
* system-dependent part of libdbus. Windows has a parallel
* implementation of some of it in dbus-sysdeps-win.c. */
#if defined(DBUS_WIN) || !defined(DBUS_UNIX)
#error "This file only makes sense on Unix OSs"
#endif
/**
* @addtogroup DBusInternalsUtils
* @{