]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Clarify which files are Unix-specific
authorSimon McVittie <smcv@collabora.com>
Fri, 12 Jan 2018 14:09:59 +0000 (14:09 +0000)
committerSimon McVittie <smcv@collabora.com>
Mon, 15 Jan 2018 18:34:28 +0000 (18:34 +0000)
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

dbus/dbus-spawn.c
dbus/dbus-userdb-util.c
dbus/dbus-userdb.c

index 4fc67b6df9dd538dc45f88913527863bf65dc2de..82c9f8ae1543c5db16e15e13704729e3b3724b1f 100644 (file)
 
 #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"
index 5ec68445f4ffeed1753888f137ffab8ceb0f3225..7f719b262d35f57552fc26baadd00a13a09df577 100644 (file)
 #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
index 317b502dc4fdbb31f8ffe48e93d6ba7f1f883c79..e765e794520902edebb4333dbb265857c94c806f 100644 (file)
 #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
  * @{