diff --git a/src/tests/drm-mock/drm-mock.c b/src/tests/drm-mock/drm-mock.c index 724596189..42facfbb3 100644 --- a/src/tests/drm-mock/drm-mock.c +++ b/src/tests/drm-mock/drm-mock.c @@ -58,6 +58,7 @@ FunctionName args_type \ { \ static int (* real_function) args_type; \ int ret; \ +\ if (G_UNLIKELY (!real_function)) \ real_function = dlsym (RTLD_NEXT, #FunctionName); \ \