goldfish-opengl: add cstring in various places
Helps with the g++ build. Also, remove $(LINUX_GUEST_BUILD)
guard since it's not useful.
BUG=202552093
TEST=compile
Change-Id: I40680660a3f2b4da97be61c8b827cd20b087ea95
diff --git a/shared/GoldfishAddressSpace/include/goldfish_address_space_android.impl b/shared/GoldfishAddressSpace/include/goldfish_address_space_android.impl
index 21d6fe9..689cbe0 100644
--- a/shared/GoldfishAddressSpace/include/goldfish_address_space_android.impl
+++ b/shared/GoldfishAddressSpace/include/goldfish_address_space_android.impl
@@ -24,6 +24,7 @@
#include <cstdlib>
#include <errno.h>
#include <memory>
+#include <cstring>
#ifdef VIRTIO_GPU
#include <xf86drm.h>
diff --git a/system/OpenglSystemCommon/HostConnection.h b/system/OpenglSystemCommon/HostConnection.h
index 189b8bf..a6810a5 100644
--- a/system/OpenglSystemCommon/HostConnection.h
+++ b/system/OpenglSystemCommon/HostConnection.h
@@ -35,7 +35,7 @@
#endif
#include <memory>
-#include <string>
+#include <cstring>
class GLEncoder;
struct gl_client_context_t;
diff --git a/system/vulkan_enc/func_table.cpp b/system/vulkan_enc/func_table.cpp
index a27e40f..cde7e0b 100644
--- a/system/vulkan_enc/func_table.cpp
+++ b/system/vulkan_enc/func_table.cpp
@@ -32,6 +32,7 @@
#include "goldfish_vk_private_defs.h"
#include <log/log.h>
+#include <cstring>
// Stuff we are not going to use but if included,
// will cause compile errors. These are Android Vulkan
diff --git a/system/vulkan_enc/goldfish_vk_counting_guest.cpp b/system/vulkan_enc/goldfish_vk_counting_guest.cpp
index 4e42832..0f16d82 100644
--- a/system/vulkan_enc/goldfish_vk_counting_guest.cpp
+++ b/system/vulkan_enc/goldfish_vk_counting_guest.cpp
@@ -28,6 +28,7 @@
#include "goldfish_vk_extension_structs_guest.h"
#include "goldfish_vk_private_defs.h"
+#include <cstring>
namespace goldfish_vk {