qemu编译安装出错
memfd.c:40:12: error: static declaration of ‘memfd_create’ follows non-static declaration
解决方法:
https://git.qemu.org/?p=qemu.git;a=commit;h=75e5b70e6b5dcc4f2219992d7cffa462aa406af0
把commit复制下来75e5b70e6b5dcc4f2219992d7cffa462aa406af0
在qemu目录下执行git show 75e5b70e6b5dcc4f2219992d7cffa462aa406af0
通过git cherry-pick 75e5b70e6b5dcc4f2219992d7cffa462aa406af0 把补丁打上就可以解决。