0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-27 06:08:57 +00:00
glibc-packages/gpkg/mesa/fix-for-anon-file.patch
Askorbinovaya Kislota 16691125d7
adding mesa and other graphics packages (#164)
gpkg/libwayland
gpkg/libwayland-protocols
gpkg/vulkan-tools
gpkg/mesa-demos
gpkg/opengl
gpkg/freeglut
gpkg/glu
gpkg/glslang
gpkg/spirv-tools
gpkg/spirv-headers
gpkg/glmark2
gpkg/vkmark
gpkg/glm
gpkg/xcb-util-wm
gpkg/assimp
gpkg/alsa-lib
gpkg/libomxil-bellagio
gpkg/libva
gpkg/libvdpau
gpkg/vulkan-volk
gpkg/libepoxy
gpkg/libclc
gpkg/spirv-llvm-translator

Co-authored-by: Maxython <mixython@gmail.com>
2024-02-05 23:52:12 +03:00

15 lines
340 B
Diff

Fallback to `@TERMUX_PREFIX_CLASSICAL@/tmp` if env `XDG_RUNTIME_DIR` is not set.
--- a/src/util/anon_file.c
+++ b/src/util/anon_file.c
@@ -136,6 +136,9 @@
char *name;
path = getenv("XDG_RUNTIME_DIR");
+ if (!path) {
+ path = "@TERMUX_PREFIX_CLASSICAL@/tmp";
+ }
if (!path) {
errno = ENOENT;
return -1;