diff UnitTestsSources/PluginsTests.cpp @ 2364:ae50eccd41b7

compilation succeeds on OpenBSD
author jodogne
date Mon, 21 Aug 2017 16:28:53 +0200
parents a3a65de1840f
children 878b59270859
line wrap: on
line diff
--- a/UnitTestsSources/PluginsTests.cpp	Mon Aug 21 15:04:20 2017 +0200
+++ b/UnitTestsSources/PluginsTests.cpp	Mon Aug 21 16:28:53 2017 +0200
@@ -65,8 +65,8 @@
   ASSERT_TRUE(l.HasFunction("dlclose"));
   ASSERT_FALSE(l.HasFunction("world"));
 
-#elif defined(__FreeBSD__)
-  // dlopen() in FreeBSD is supplied by libc, libc.so is
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+  // dlopen() in FreeBSD/OpenBSD is supplied by libc, libc.so is
   // a ldscript, so we can't actually use it. Use thread
   // library instead - if it works - dlopen() is good.
   SharedLibrary l("libpthread.so");