opnsense-ports/comms/cubicsdr/files/patch-src_util_GLExt.cpp
Franco Fichtner 159ca1f9ef */*: sync with upstream
Taken from: HardenedBSD
2019-02-28 22:05:47 +01:00

20 lines
553 B
C++

--- src/util/GLExt.cpp.orig 2018-08-20 16:53:40 UTC
+++ src/util/GLExt.cpp
@@ -9,7 +9,7 @@
#include <OpenGL/OpenGL.h>
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
#include <dlfcn.h>
#endif
@@ -60,7 +60,7 @@ void initGLExtensions() {
CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &interval);
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
dlopen("libglx.so",RTLD_LAZY);
void (*glxSwapIntervalEXTFunc) (Display *dpy, GLXDrawable drawable, int interval) = 0;