v4l-utils: Fix build for Clang 16

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-04-14 05:21:59 +09:00 committed by xtkoba
parent 2522fd420b
commit 96c2c4e536
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- 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)