Commit a0ac6521 authored by Simon McVittie's avatar Simon McVittie
Browse files

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's avatarSimon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104588
parent 2c9d7a66
......@@ -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"
......
......@@ -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
......
......@@ -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
* @{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment