diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-07-31 16:52:18 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-01 01:21:59 +0300 |
commit | 93d975194522450894a6fe7554b28a14fbfe7214 (patch) | |
tree | c1473b5a19d414f1cab22f097dfaabab818b2da8 /src/apps/cam/main.cpp | |
parent | a7a589df15f4ba3d6642aa8ae031a9b3ed0f5a1f (diff) |
libcamera: base: memfd: Handle uClibc compatibility with function wrapper
uClibc doesn't provide memfd_create(), which led libcamera to open-code
the call using syscall(). Sprinkling the code with #ifdef's isn't the
most readable option, so improve it by providing a local implementation
of memfd_create(), and call the function unconditionally from
MemFd::create(). This makes the main code path more readable.
Suggested-by: Nicolas Dufresne <nicolas@ndufresne.ca>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Milan Zamazal <mzamazal@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Diffstat (limited to 'src/apps/cam/main.cpp')
0 files changed, 0 insertions, 0 deletions