unique_fd: Disable socket code on Trusty

Trusty does not support POSIX sockets.
This disables all code in unique_fd that uses them.

Test: m
Bug: 224064243
Change-Id: I041d1bf4dac36d0c5a31b1a533064aadff0711b3
diff --git a/include/android-base/unique_fd.h b/include/android-base/unique_fd.h
index e929e4c..1ffe02f 100644
--- a/include/android-base/unique_fd.h
+++ b/include/android-base/unique_fd.h
@@ -32,7 +32,7 @@
 #if defined(__BIONIC__)
 #include <android/fdsan.h>
 #endif
-#if !defined(_WIN32)
+#if !defined(_WIN32) && !defined(__TRUSTY__)
 #include <sys/socket.h>
 #endif
 
@@ -183,7 +183,7 @@
 
 using unique_fd = unique_fd_impl<DefaultCloser>;
 
-#if !defined(_WIN32)
+#if !defined(_WIN32) && !defined(__TRUSTY__)
 
 // Inline functions, so that they can be used header-only.
 
@@ -273,7 +273,7 @@
   return dir;
 }
 
-#endif  // !defined(_WIN32)
+#endif  // !defined(_WIN32) && !defined(__TRUSTY__)
 
 // A wrapper type that can be implicitly constructed from either int or
 // unique_fd. This supports cases where you don't actually own the file