]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: skip systemd mock on non-Linux
authorEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 16:47:09 +0000 (10:47 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 17:28:43 +0000 (11:28 -0600)
commit524f52c305b0e1e730994bd308d0d2d5d43bf2c2
tree57e4eb1b8b349f22d5e61c61f9355bc8ac89d41d
parent63d261f395e83bb5c9b28271ff78e73ceabe83d5
build: skip systemd mock on non-Linux

A cross-compile to mingw failed:

  CC       virsystemdmock_la-virsystemdmock.lo
../../tests/virsystemdmock.c:29:6: error: 'dbus_connection_set_change_sigpipe' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes]
 void dbus_connection_set_change_sigpipe(dbus_bool_t will_modify_sigpipe ATTRIBUTE_UNUSED)
      ^

But when you think about it, systemd is Linux-only, and even our
use of LD_PRELOAD to provide mock syscalls is Linux-only.

* tests/virsystemdmock.c: Avoid compilation outside Linux.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/virsystemdmock.c