Unverified Commit 2e1d10dc authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

gfxstream: fix build with gcc15 (#467026)

parents c15e721b 0bdff8af
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
diff --git a/host/BorrowedImage.h b/host/BorrowedImage.h
index ed2890568..51ea2b6b1 100644
--- a/host/BorrowedImage.h
+++ b/host/BorrowedImage.h
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include <cstdint>
 #pragma once
 
 namespace gfxstream {
diff --git a/host/compressedTextureFormats/AstcCpuDecompressor.h b/host/compressedTextureFormats/AstcCpuDecompressor.h
index 4823ee255..3af0bdc64 100644
--- a/host/compressedTextureFormats/AstcCpuDecompressor.h
+++ b/host/compressedTextureFormats/AstcCpuDecompressor.h
@@ -15,6 +15,7 @@
 
 #include <memory>
 #include <string>
+#include <cstdint>
 
 namespace gfxstream {
 namespace vk {
diff --git a/host/magma/DrmContext.h b/host/magma/DrmContext.h
index db3ef45e4..5030c7dd6 100644
--- a/host/magma/DrmContext.h
+++ b/host/magma/DrmContext.h
@@ -16,6 +16,7 @@
 
 #include <memory>
 #include <optional>
+#include <cstdint>
 
 #include "aemu/base/Compiler.h"
 
diff --git a/host/vulkan/BufferVk.h b/host/vulkan/BufferVk.h
index 9016fd745..a8a3fe3eb 100644
--- a/host/vulkan/BufferVk.h
+++ b/host/vulkan/BufferVk.h
@@ -14,6 +14,7 @@
 
 #include <memory>
 #include <vector>
+#include <cstdint>
 
 namespace gfxstream {
 namespace vk {
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,11 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-AN6OpZQ2te4iVuh/kFHXzmLAWIMyuoj9FHTVicnbiPw=";
  };

  patches = [
    # Fix build with gcc15
    ./gfxstream-add-include-cstdint.patch
  ];

  # Ensure that meson can find an Objective-C compiler on Darwin.
  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    substituteInPlace meson.build \