1 --- OrthancServer/UnitTestsSources/PluginsTests.cpp.orig 2022-10-29 17:00:59.693362000 +0200
2 +++ OrthancServer/UnitTestsSources/PluginsTests.cpp 2022-10-29 17:02:58.710749000 +0200
4 //ASSERT_TRUE(l.GetFunction("_init") != NULL);
5 //ASSERT_TRUE(l.HasFunction("_init"));
7 -#elif defined(__linux__) || defined(__FreeBSD_kernel__)
8 +#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
10 * Since Orthanc 1.10.0, we test the "libdl.so.2" instead of the
11 * "libdl.so", as discussed here:
16 -#elif defined(__FreeBSD__) || defined(__OpenBSD__)
17 +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(_DragonFly__)
18 // dlopen() in FreeBSD/OpenBSD is supplied by libc, libc.so is
19 // a ldscript, so we can't actually use it. Use thread
20 // library instead - if it works - dlopen() is good.