From 465a0bb243524efda0a5357dc268a1c9a7b38dca Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Wed, 29 Aug 2018 12:58:03 +0300
Subject: define RTLD_NOLOAD


diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index 9977a02..e8f17b4 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -300,6 +300,10 @@ get_dlopen_handle(void **handle, const char *lib_name, bool exit_on_fail, bool l
         abort();
     }
 
+#ifndef RTLD_NOLOAD
+	#define RTLD_NOLOAD 0
+#endif
+
 #ifdef _WIN32
     *handle = LoadLibraryA(lib_name);
 #else
-- 
2.30.2


From dc0ef4892bff31c3b7e450de478111cf657046bf Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Tue, 18 Jan 2022 19:07:22 -0500
Subject: (HACK) Haiku does not have a gl.pc.


diff --git a/src/meson.build b/src/meson.build
index 37e28f0..b5e456d 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -93,7 +93,7 @@ libepoxy_dep = declare_dependency(
 # pkg-config file, for consumers of Epoxy
 gl_reqs = []
 if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
-  gl_reqs += 'gl'
+#  gl_reqs += 'gl'
 endif
 if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
   gl_reqs += 'egl'
-- 
2.30.2

