This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: meson: fix has_function fork detection (needs suitable include)
Author:  Peter Seiderer <ps.rep...@gmx.net>
Date:    Mon Dec 4 10:11:33 2023 +0100

- 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.rep...@gmx.net>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=2909221e0fd293d2dbb865776645fa3ec06d4bd5
diff --git a/meson.build b/meson.build
index b4018c826ddf..03508bc8f7ed 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

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to