Differential D7164 Diff 18237 head/graphics/tulip/files/patch-library_tulip-core_src_PluginLibraryLoader.cpp
Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/tulip/files/patch-library_tulip-core_src_PluginLibraryLoader.cpp
--- library/tulip-core/src/PluginLibraryLoader.cpp.orig 2015-04-18 20:15:27 UTC | --- library/tulip-core/src/PluginLibraryLoader.cpp.orig 2016-07-07 20:15:54 UTC | ||||
+++ library/tulip-core/src/PluginLibraryLoader.cpp | +++ library/tulip-core/src/PluginLibraryLoader.cpp | ||||
@@ -130,7 +130,14 @@ bool PluginLibraryLoader::loadPluginLibr | @@ -138,7 +138,14 @@ bool PluginLibraryLoader::loadPluginLibr | ||||
} | } | ||||
// accepts only file whose name matches *.so or *.dylib | // accepts only file whose name matches *.so or *.dylib | ||||
+#ifdef __FreeBSD__ | +#ifdef __FreeBSD__ | ||||
+#include <sys/param.h> | +#include <sys/param.h> | ||||
+#if (__FreeBSD_version < 900000 && __FreeBSD_version >= 800501) || (__FreeBSD_version >= 900006) | +#if (__FreeBSD_version < 900000 && __FreeBSD_version >= 800501) || (__FreeBSD_version >= 900006) | ||||
+int __tulip_select_libs(const struct dirent *ent) { | +int __tulip_select_libs(const struct dirent *ent) { | ||||
+#else | +#else | ||||
int __tulip_select_libs(struct dirent *ent) { | int __tulip_select_libs(struct dirent *ent) { | ||||
+#endif /* __FreeBSD_version */ | +#endif /* __FreeBSD_version */ | ||||
+#endif /* __FreeBSD__ */ | +#endif /* __FreeBSD__ */ | ||||
#if !defined(__APPLE__) | #if !defined(__APPLE__) | ||||
const char *suffix = ".so"; | const char *suffix = ".so"; | ||||
const unsigned long suffix_len = 3; | const unsigned long suffix_len = 3; |