Message ID | 20231204091134.28481-1-ps.report@gmx.net |
---|---|
State | New |
Headers | show |
Series | [v4l-utils,v1,1/2] meson: fix has_function fork detection (needs suitable include) | expand |
diff --git a/meson.build b/meson.build index b4018c82..03508bc8 100644 --- a/meson.build +++ b/meson.build @@ -128,7 +128,7 @@ dep_threads = dependency('threads') dep_x11 = dependency('x11', required : false) dep_xmlrpc = dependency('xmlrpc', required : false) -have_fork = cc.has_function('fork') +have_fork = cc.has_function('fork', prefix: '#include <unistd.h>') have_i2c_dev = cc.has_header('linux/i2c-dev.h') if have_visibility
- fix meson has_function('fork') detection, needs suitable include to avoid false positive (see [1] for details) Fixes: .../bootlin-armv7m-uclibc/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: lib/libv4lconvert/libv4lconvert.a(helper.c.o): in function `v4lconvert_helper_decompress': helper.c:(.text+0x14e): undefined reference to `fork' collect2: error: ld returned 1 exit status [1] https://github.com/mesonbuild/meson/issues/7652 Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)