Update science/orthanc to version 1.11.0_3
[dports.git] / science / orthanc / dragonfly / patch-OrthancServer_UnitTestsSources_PluginsTests.cpp
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
3 @@ -75,7 +75,7 @@
4    //ASSERT_TRUE(l.GetFunction("_init") != NULL);
5    //ASSERT_TRUE(l.HasFunction("_init"));
6    
7 -#elif defined(__linux__) || defined(__FreeBSD_kernel__)
8 +#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
9    /**
10     * Since Orthanc 1.10.0, we test the "libdl.so.2" instead of the
11     * "libdl.so", as discussed here:
12 @@ -125,7 +125,7 @@
13    
14    ASSERT_TRUE(0);
15  
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.