libcamera: shared_mem_object: Fix compilation with uClibc
uClibc doesn't provide a memfd_create() implementation. Fix it by using a direct syscall when the function isn't available. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
parent
e0318c4776
commit
acf61456cc
2 changed files with 10 additions and 0 deletions
|
@ -82,6 +82,10 @@ if cc.has_header_symbol('locale.h', 'locale_t', prefix : '#define _GNU_SOURCE')
|
|||
config_h.set('HAVE_LOCALE_T', 1)
|
||||
endif
|
||||
|
||||
if cc.has_header_symbol('sys/mman.h', 'memfd_create', prefix : '#define _GNU_SOURCE')
|
||||
config_h.set('HAVE_MEMFD_CREATE', 1)
|
||||
endif
|
||||
|
||||
if cc.has_header_symbol('stdlib.h', 'secure_getenv', prefix : '#define _GNU_SOURCE')
|
||||
config_h.set('HAVE_SECURE_GETENV', 1)
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue