Skip to content

Commit

Permalink
configure: modernize dbus test
Browse files Browse the repository at this point in the history
remove useless define and ifdef/error, and check for a more appropriate
function.

Change-Id: I1a1622cc157c49ebb6787068ade7b33e45e228ca
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
ossilator authored and tronical committed Aug 2, 2017
1 parent 799e09a commit 1229558
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config.tests/unix/dbus/dbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,10 @@
**
****************************************************************************/

#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>

#if DBUS_MAJOR_PROTOCOL_VERSION < 1
#error Needs at least dbus version 1
#endif

int main(int, char **)
{
dbus_shutdown();
(void) dbus_bus_get_private(DBUS_BUS_SYSTEM, (DBusError *)NULL);
return 0;
}

0 comments on commit 1229558

Please sign in to comment.