util-magic: fix build when magic is not available

If HAVE_MAGIC is not defined then we don't have the test functions
so we can't register them.
pull/2467/head
Eric Leblond 8 years ago committed by Victor Julien
parent bc38cd5932
commit 63a3b84127

@ -659,6 +659,7 @@ end:
void MagicRegisterTests(void)
{
#ifdef HAVE_MAGIC
#ifdef UNITTESTS
UtRegisterTest("MagicInitTest01", MagicInitTest01);
UtRegisterTest("MagicInitTest02", MagicInitTest02);
@ -676,4 +677,6 @@ void MagicRegisterTests(void)
UtRegisterTest("MagicDetectTest10ValgrindError",
MagicDetectTest10ValgrindError);
#endif /* UNITTESTS */
#endif /* HAVE_MAGIC */
}

Loading…
Cancel
Save