0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/mesa/0000-disable-android-detection.patch
2024-10-30 15:22:21 +02:00

19 lines
428 B
Diff

+++ ./src/util/detect_os.h
@@ -24,7 +24,7 @@
* Android defines __linux__, so DETECT_OS_LINUX and DETECT_OS_POSIX will
* also be defined.
*/
-#if defined(__ANDROID__)
+#if 0
#define DETECT_OS_ANDROID 1
#endif
+++ ./include/vulkan/vk_android_native_buffer.h
@@ -1,5 +1,5 @@
/* MESA: A hack to avoid #ifdefs in driver code. */
-#ifdef __ANDROID__
+#if 0
#include <cutils/native_handle.h>
#if ANDROID_API_LEVEL < 28