diff options
Diffstat (limited to 'libphobos/testsuite/libphobos.shared/host.c')
-rw-r--r-- | libphobos/testsuite/libphobos.shared/host.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libphobos/testsuite/libphobos.shared/host.c b/libphobos/testsuite/libphobos.shared/host.c index 81e896a..395ad0c 100644 --- a/libphobos/testsuite/libphobos.shared/host.c +++ b/libphobos/testsuite/libphobos.shared/host.c @@ -10,6 +10,11 @@ int main(int argc, char* argv[]) void *druntime = dlopen(argv[1], RTLD_LAZY); // load druntime assert(druntime); #endif +#if defined(__DragonFly__) + // workaround for Bugzilla 14824 + void *druntime = dlopen(argv[1], RTLD_LAZY); // load druntime + assert(druntime); +#endif const size_t pathlen = strrchr(argv[0], '/') - argv[0] + 1; char *name = malloc(pathlen + sizeof("plugin1.so")); @@ -56,5 +61,8 @@ int main(int argc, char* argv[]) #if defined(__FreeBSD__) dlclose(druntime); #endif +#if defined(__DragonFly__) + dlclose(druntime); +#endif return EXIT_SUCCESS; } |