From: Android Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Date: Fri, 13 Jun 2025 21:02:47 +0800
Subject: Support mips

Forwarded: not-needed

Some error codes might be different between common and MIPS API:
- /usr/include/asm-generic/errno.h
- /usr/include/mips64el-linux-gnuabi64/asm/errno.h
---
 packages/modules/adb/sysdeps/errno.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/modules/adb/sysdeps/errno.cpp b/packages/modules/adb/sysdeps/errno.cpp
index e6af68b..b5d7cc9 100644
--- a/packages/modules/adb/sysdeps/errno.cpp
+++ b/packages/modules/adb/sysdeps/errno.cpp
@@ -48,7 +48,7 @@
     ERRNO_VALUE(ETXTBSY, 26)
 
 // Make sure these values are actually correct.
-#if defined(__linux__)
+#if defined(__linux__) && !defined(__mips__)
 #define ERRNO_VALUE(error_name, wire_value) static_assert((error_name) == (wire_value), "")
 ERRNO_VALUES();
 #undef ERRNO_VALUE
