summaryrefslogtreecommitdiff
path: root/src/dispatch_common.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-07-12 13:59:44 -0400
committerAdam Jackson <ajax@redhat.com>2017-07-12 14:02:44 -0400
commit91c9ecebd963c7af1f0ef3d1333ca0a723bdd6d4 (patch)
tree03c959fcf3c0e417cff4f180c56f2541d199414a /src/dispatch_common.c
parentb157a4d5ca7c9f4f5a2c58d27d14d4f8de17b5bd (diff)
downloadlibepoxy-91c9ecebd963c7af1f0ef3d1333ca0a723bdd6d4.tar.gz
dispatch: Don't reference glvnd #defines on non-glvnd systems
Broke the build on OSX, oops. Resolves: https://github.com/anholt/libepoxy/issues/132 Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/dispatch_common.c')
-rw-r--r--src/dispatch_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index bbbf913..a7c2f74 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -597,9 +597,11 @@ epoxy_egl_dlsym(const char *name)
void *
epoxy_conservative_glx_dlsym(const char *name, bool exit_if_fails)
{
+#ifdef GLVND_GLX_LIB
/* prefer the glvnd library if it exists */
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLVND_GLX_LIB, false);
+#endif
return do_dlsym(&api.glx_handle, GLX_LIB, name, exit_if_fails);
}