Files
termux-packages/packages/mesa/0016-define-reallocarray.patch
2025-09-13 17:36:10 +00:00

12 lines
296 B
Diff

--- a/src/util/reallocarray.h
+++ b/src/util/reallocarray.h
@@ -24,7 +24,7 @@
#ifndef REALLOCARRAY_H
#define REALLOCARRAY_H
-#if !defined(HAVE_REALLOCARRAY)
+#if !defined(HAVE_REALLOCARRAY) || (defined(__TERMUX__) && __ANDROID_API__ < 29)
#include <stdlib.h> // size_t
#include <errno.h>