libcamera: dma_buf_allocator: Work around lack of file seals in uClibc
uClibc doesn't provide the macros defining parameters for the file
sealing API. Define them manually as a work around.
Fixes: ea4baaacc3
("libcamera: DmaBufAllocator: Support allocating from /dev/udmabuf")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
9f0d88695e
commit
48cb731d72
2 changed files with 12 additions and 0 deletions
|
@ -74,6 +74,10 @@ cc = meson.get_compiler('c')
|
|||
cxx = meson.get_compiler('cpp')
|
||||
config_h = configuration_data()
|
||||
|
||||
if cc.has_header_symbol('fcntl.h', 'F_ADD_SEALS', prefix : '#define _GNU_SOURCE')
|
||||
config_h.set('HAVE_FILE_SEALS', 1)
|
||||
endif
|
||||
|
||||
if cc.has_header_symbol('unistd.h', 'issetugid')
|
||||
config_h.set('HAVE_ISSETUGID', 1)
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue