termux-packages/packages/aapt/libcutils-sockets_unix.cpp....

12 lines
362 B
Diff
Raw Normal View History

2022-02-06 13:20:18 +01:00
--- a/core/libcutils/sockets_unix.cpp
+++ b/core/libcutils/sockets_unix.cpp
@@ -50,7 +50,7 @@
return writev(sock, iovec_buffers, num_buffers);
}
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) && !defined(__TERMUX__)
int android_get_control_socket(const char* name) {
int fd = __android_get_control_from_env(ANDROID_SOCKET_ENV_PREFIX, name);