mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-27 06:08:57 +00:00
16691125d7
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>
15 lines
340 B
Diff
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;
|