From e74983906112d6e082755b5efda6640b1e2a36ff Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 3 Oct 2005 19:33:54 +0000 Subject: [PATCH] From MFM, Added FreeBSD specific implementation for getGLExtensionFuncPtr using dlsym(RTLD_DEFAULT, xxx) --- include/osg/GLExtensions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osg/GLExtensions b/include/osg/GLExtensions index 8afaf0229..e52289523 100644 --- a/include/osg/GLExtensions +++ b/include/osg/GLExtensions @@ -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);