diff --git a/tests/virportallocatortest.c b/tests/virportallocatortest.c index 34843e314d1979cafc902b886b9b8fd5d19f3a80..5a93dad3fbbadff77fdf7ad5b73ce51b793ea227 100644 --- a/tests/virportallocatortest.c +++ b/tests/virportallocatortest.c @@ -23,7 +23,7 @@ #include "virfile.h" #include "testutils.h" -#if HAVE_DLFCN_H +#if HAVE_DLFCN_H && defined(RTLD_NEXT) # ifdef MOCK_HELPER # include "internal.h"