0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-23 09:41:41 +00:00
Files
termux-packages/x11-packages/xorg-iceauth/process.c.patch
2024-05-12 19:09:03 +03:00

11 lines
338 B
Diff

+++ ./process.c
@@ -698,7 +698,7 @@
ProgramName, temp_name);
} else {
(void) unlink (iceauth_filename);
-#ifdef WIN32
+#if defined(WIN32) || defined(__ANDROID__)
if (rename(temp_name, iceauth_filename) == -1)
#else
/* Attempt to rename() if link() fails, since this may be on a FS that does not support hard links */