TEST_LISTEN is defined by the cmake/autotools (or meson) build systems.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
#ifndef _DBUS_CONFIG_H
#define _DBUS_CONFIG_H
-/****************************/
-/* indicate that we are building with cmake */
-#define DBUS_CMAKE 1
/* On Windows, we expect to be using msvcrt.dll-compatible printf
* (%I64u instead of %llu) unless otherwise specified. This must be
if (!dbus_connection_add_filter (session, filter_session_message, testdata, NULL))
die ("couldn't add filter");
-#ifdef DBUS_CMAKE
server = dbus_server_listen (TEST_LISTEN, &error);
-#else
- server = dbus_server_listen ("unix:tmpdir=/tmp", &error);
-#endif
if (!server)
die ("%s", error.message);
testdata->private_addr = dbus_server_get_address (server);