0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-11 13:09:18 +00:00
termux-packages/x11-packages/wayvnc/0001-memfd_create.patch
2023-10-20 03:20:08 +08:00

12 lines
350 B
Diff

--- a/meson.build
+++ b/meson.build
@@ -143,7 +143,7 @@
if cc.has_function('memfd_create')
config.set('HAVE_MEMFD', true)
config.set('HAVE_MEMFD_CREATE', true)
-elif cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
+elif cc.has_header_symbol('sys/syscall.h', 'SYS_memfd_create')
config.set('HAVE_MEMFD', true)
endif