From f6d2b1f6adce7ab86f44705889b0fafe6e91ffed Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 23 Feb 2018 19:59:48 +0000 Subject: [PATCH] Do not use OPENGL_LIB on Android When building on Android we end up in the Linux branch of the symbol loading logic, but the __ANDROID__ conditional does not have the OPENGL_LIB symbol defined, and that breaks the build. Closes: #152 --- src/dispatch_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index d66cfca..dc494c4 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -675,8 +675,10 @@ epoxy_gl_dlsym(const char *name) #else void *sym; +# if defined(OPENGL_LIB) if (!api.gl_handle) get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false); +# endif if (api.gl_handle) return do_dlsym(&api.gl_handle, NULL, name, true);