From e173e7bec0961bbc5cc972b6fe1d3d9721c8c5b6 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 8 Feb 2007 20:14:30 +0000 Subject: Add header check for dlfcn.h. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/glut_compatability.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/glut_compatability.cxx b/src/glut_compatability.cxx index 47079905d..0f768a4dc 100644 --- a/src/glut_compatability.cxx +++ b/src/glut_compatability.cxx @@ -43,9 +43,9 @@ # define GLX_GLXEXT_LEGACY # include # endif // HAVE_GLXGETPROCADDRESSARB -# ifdef HAVE_DLSYM +# ifdef HAVE_DLFCN_H # include -# endif // HAVE_DLSYM +# endif // HAVE_DLFCN_H # define MAXWINDOWS 32 static Fl_Glut_Window *windows[MAXWINDOWS+1]; @@ -443,7 +443,7 @@ GLUTproc glutGetProcAddress(const char *procName) { # ifdef WIN32 return (GLUTproc)wglGetProcAddress((LPCSTR)procName); -# elif defined(HAVE_DLSYM) +# elif defined(HAVE_DLSYM) && defined(HAVE_DLFCN_H) char symbol[1024]; snprintf(symbol, sizeof(symbol), "_%s", procName); -- cgit v1.2.3