]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build-sys: drop DBUS_CMAKE
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 24 May 2022 20:12:18 +0000 (22:12 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 17 Jun 2022 11:19:38 +0000 (15:19 +0400)
TEST_LISTEN is defined by the cmake/autotools (or meson) build systems.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
cmake/config.h.cmake
test/test-privserver.c

index cf329b510e32e85807e3761d9e8a0561c948749c..f0fb75e2db3f00c8f3c9f599edd5b36968d4e9b1 100644 (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
index 3c512d99a83894af6fec3d7e87da7d380fdb0b6c..eb47980eb0e2e9609632ddb42e45ff46835eccd8 100644 (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);