Skip to content

gfxstream: include sys/syscall.h for memfd_create on riscv64#2380

Open
monkey-jsun wants to merge 1 commit intogoogle:mainfrom
monkey-jsun:pr/gfxstream-riscv64
Open

gfxstream: include sys/syscall.h for memfd_create on riscv64#2380
monkey-jsun wants to merge 1 commit intogoogle:mainfrom
monkey-jsun:pr/gfxstream-riscv64

Conversation

@monkey-jsun
Copy link
Copy Markdown

SharedMemory_posix.cpp has hardcoded __NR_memfd_create syscall numbers
for x86/arm but not riscv64. Including sys/syscall.h provides the
correct kernel-defined value, so the hardcoded fallback is skipped.

SharedMemory_posix.cpp has hardcoded __NR_memfd_create syscall numbers
for x86/arm but not riscv64.  Including sys/syscall.h provides the
correct kernel-defined value, so the hardcoded fallback is skipped.
jmacnak added a commit to jmacnak/gfxstream that referenced this pull request Apr 10, 2026
github-merge-queue bot pushed a commit to google/gfxstream that referenced this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant