libepoxy: fix compilation

This commit is contained in:
Jeremy Soller 2025-05-04 17:58:31 -06:00
parent 09fbbf3dd6
commit e1aada209d
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 37 additions and 1 deletions

View File

@ -1,8 +1,26 @@
#TODO missing script for Meson, see https://github.com/anholt/libepoxy#building
[source]
tar = "https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.10.tar.xz"
blake3 = "0ccee9635115fe417cfc4bc33ffd160bf1e2852bd6c03816b4af771d59462f53"
patches = ["redox.patch"]
[build]
template = "custom"
dependencies = [
"liborbital",
"libpthread-stubs",
"libx11",
"libxau",
"libxcb",
"llvm18",
"mesa",
"mesa-glu",
"x11proto",
"zlib",
]
script = """
DYNAMIC_INIT
cookbook_meson \
-Degl=no \
-Dglx=no \
-Dtests=false
"""

View File

@ -0,0 +1,18 @@
diff -ruwN libepoxy-1.5.10/src/dispatch_common.c source/src/dispatch_common.c
--- libepoxy-1.5.10/src/dispatch_common.c 2022-02-17 05:56:12.000000000 -0700
+++ source/src/dispatch_common.c 2025-05-04 17:57:31.910921783 -0600
@@ -264,13 +264,7 @@
long begin_count;
};
-static struct api api = {
-#ifndef _WIN32
- .mutex = PTHREAD_MUTEX_INITIALIZER,
-#else
- 0,
-#endif
-};
+static struct api api = {0};
static bool library_initialized;