diff --git a/tests/virsystemdmock.c b/tests/virsystemdmock.c index 1f4413c601..b6c36950f8 100644 --- a/tests/virsystemdmock.c +++ b/tests/virsystemdmock.c @@ -20,11 +20,12 @@ #include -#include "internal.h" +#ifdef __linux__ +# include "internal.h" -#include +# include -#include +# include void dbus_connection_set_change_sigpipe(dbus_bool_t will_modify_sigpipe ATTRIBUTE_UNUSED) { @@ -79,3 +80,7 @@ DBusMessage *dbus_connection_send_with_reply_and_block(DBusConnection *connectio return reply; } + +#else +/* Nothing to override on non-__linux__ platforms */ +#endif