0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/root-packages/v4l-utils/no-posix-shm.patch
Tee KOBAYASHI 96c2c4e536 v4l-utils: Fix build for Clang 16
%ci:no-build
2023-04-14 07:07:17 +09:00

12 lines
368 B
Diff

--- a/lib/libv4lconvert/control/libv4lcontrol.c
+++ b/lib/libv4lconvert/control/libv4lcontrol.c
@@ -715,7 +715,7 @@
if (shm_name[i] == '/')
shm_name[i] = '-';
-#ifndef ANDROID
+#ifndef __ANDROID__
/* Open the shared memory object identified by shm_name */
shm_fd = shm_open(shm_name, (O_CREAT | O_EXCL | O_RDWR), (S_IREAD | S_IWRITE));
if (shm_fd >= 0)