mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-10 20:00:51 +00:00
25 lines
804 B
Diff
25 lines
804 B
Diff
diff --git a/src/mesa/util/anon_file.c b/src/mesa/util/anon_file.c
|
|
index 4f8a5fb..cf22817 100644
|
|
--- a/src/mesa/util/anon_file.c
|
|
+++ b/src/mesa/util/anon_file.c
|
|
@@ -43,7 +43,7 @@
|
|
#include <stdio.h>
|
|
#endif
|
|
|
|
-#if !(defined(__FreeBSD__) || defined(HAVE_MEMFD_CREATE) || defined(HAVE_MKOSTEMP) || defined(__ANDROID__))
|
|
+#if !(defined(__FreeBSD__) || defined(HAVE_MEMFD_CREATE) || defined(HAVE_MKOSTEMP) || (defined(__ANDROID__) && !defined(__TERMUX__)))
|
|
static int
|
|
set_cloexec_or_close(int fd)
|
|
{
|
|
@@ -67,7 +67,7 @@ err:
|
|
}
|
|
#endif
|
|
|
|
-#if !(defined(__FreeBSD__) || defined(HAVE_MEMFD_CREATE) || defined(__ANDROID__))
|
|
+#if !(defined(__FreeBSD__) || defined(HAVE_MEMFD_CREATE) || (defined(__ANDROID__) && !defined(__TERMUX__)))
|
|
static int
|
|
create_tmpfile_cloexec(char *tmpname)
|
|
{
|
|
|
|
|