diff --git a/base/cvd/build_external/gfxstream/gfxstream.MODULE.bazel b/base/cvd/build_external/gfxstream/gfxstream.MODULE.bazel index 43bcc09d0e7..89bc85f3c32 100644 --- a/base/cvd/build_external/gfxstream/gfxstream.MODULE.bazel +++ b/base/cvd/build_external/gfxstream/gfxstream.MODULE.bazel @@ -8,5 +8,6 @@ git_repository( patches = [ "@//build_external/gfxstream:PATCH.gfxstream.build_variables.patch", "@//build_external/gfxstream:bazel9.patch", + "@//build_external/gfxstream:riscv64_memfd_create.patch", ], ) diff --git a/base/cvd/build_external/gfxstream/riscv64_memfd_create.patch b/base/cvd/build_external/gfxstream/riscv64_memfd_create.patch new file mode 100644 index 00000000000..389887d1601 --- /dev/null +++ b/base/cvd/build_external/gfxstream/riscv64_memfd_create.patch @@ -0,0 +1,10 @@ +--- a/common/base/SharedMemory_posix.cpp ++++ b/common/base/SharedMemory_posix.cpp +@@ -16,6 +16,7 @@ + #include + #include + ++#include + #include "gfxstream/EintrWrapper.h" + #include "gfxstream/Macros.h" + #include "gfxstream/files/PathUtils.h"