build-sys: drop DBUS_CMAKE

TEST_LISTEN is defined by the cmake/autotools (or meson) build systems.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-05-24 22:12:18 +02:00
parent 5f27dc813b
commit e4d6b74b25
2 changed files with 0 additions and 7 deletions

View file

@ -2,9 +2,6 @@
#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

View file

@ -135,11 +135,7 @@ main (int argc, char *argv[])
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);