opnsense-ports/math/clfft/files/patch-src_include_sharedLibrary.h
Franco Fichtner d10dc7f1d6 */*: sync with upstream
Taken from: FreeBSD
2015-09-18 07:18:08 +02:00

17 lines
580 B
C++

--- src/include/sharedLibrary.h.orig 2015-08-07 18:40:37.855840000 -0400
+++ src/include/sharedLibrary.h 2015-08-07 18:40:42.675578000 -0400
@@ -52,6 +52,14 @@
{
std::cerr << ::dlerror( ) << std::endl;
}
+#elif defined(__FreeBSD__)
+ tstring freebsdName = unixPrefix;
+ freebsdName += libraryName += ".so";
+ void* fileHandle = ::dlopen( freebsdName.c_str( ), RTLD_NOW );
+ if( !quiet && !fileHandle )
+ {
+ std::cerr << ::dlerror( ) << std::endl;
+ }
#else
#error "unsupported platform"
#endif