]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: don't mock the time() function on mingw
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 22 Jul 2020 16:31:33 +0000 (17:31 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 23 Jul 2020 13:58:16 +0000 (14:58 +0100)
commit5e9d6b3a46c375e86e8b3be00d5eaef97dcf92fe
treedb4ce1cdfeaebcc525ac9af8f0c2c9609e5d9cf4
parentd0c64fc28130210a3a87e0544f855c918ae052b2
tests: don't mock the time() function on mingw

The mingw header define time() as a static inline function and this
causes a duplicate definition build failure. Since we're not using the
LD_PRELOAD at all on Mingw, we ideally wouldn't compile any of the
mock libraries. Rather than change the build system now though, this
just stubs out the offending function.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/virnetdaemonmock.c