Gbp-Pq: Name 0144-test_dlopen-fix-for-ICD-enabled.patch
#include <dlfcn.h>
#include <stdio.h>
+#include <config.h>
#ifdef __APPLE__
#define SHLIB_EXT "dylib"
SHLIB_ORIGIN "/../../lib/CL/devices/%s/libpocl-devices-%s.so", argv[1],
argv[1]);
-#ifdef ENABLE_ICD
+#ifdef BUILD_ICD
void *handle_libpocl = dlopen (libpocl, RTLD_NOW | RTLD_GLOBAL);
if (!handle_libpocl)
{
dlclose (handle_device);
}
-#ifdef ENABLE_ICD
+#ifdef BUILD_ICD
if (handle_libpocl)
dlclose (handle_libpocl);
#endif