From 063c1df27974f58b0f3c0a57417732da068923cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Oct 2021 10:59:09 +0100 Subject: [PATCH] fix error: use of undeclared identifier 'OPENGL_LIB' at epoxy/src/dispatch_common.c:690 in LibreOffice android build with libepoxy-1.5.9 --- src/dispatch_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 592df38..153eb7c 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -683,7 +683,11 @@ epoxy_load_gl(void) #endif if (!api.gl_handle) { +#if defined(OPENGL_LIB) fprintf(stderr, "Couldn't open %s or %s\n", GLX_LIB, OPENGL_LIB); +#else + fprintf(stderr, "Couldn't open %s\n", GLX_LIB); +#endif abort(); }