mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-11 13:09:18 +00:00
12 lines
350 B
Diff
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
|
|
|