From MFM, Added FreeBSD specific implementation for getGLExtensionFuncPtr using dlsym(RTLD_DEFAULT, xxx)

This commit is contained in:
Robert Osfield 2005-10-03 19:33:54 +00:00
parent 436521e205
commit e749839061

View File

@ -73,6 +73,10 @@ inline void* getGLExtensionFuncPtr(const char *funcName)
static void *handle = dlopen((const char *)0L, RTLD_LAZY);
return dlsym(handle, funcName);
#elif defined (__FreeBSD__)
return dlsym( RTLD_DEFAULT, funcName );
#else // all other unixes
return dlsym(0, funcName);