From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 5DEEA4E113 for ; Fri, 6 Jun 2025 20:14:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 9078E68CB89; Fri, 6 Jun 2025 23:14:49 +0300 (EEST) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D142168C571 for ; Fri, 6 Jun 2025 23:14:42 +0300 (EEST) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-4a44e94f0b0so25995081cf.1 for ; Fri, 06 Jun 2025 13:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749240881; x=1749845681; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/pOlbe3MdSC0jMGHRiqsR0heCO7fkUw9IeeYp8MsyMY=; b=e3QCI3JMfinoWp1i8/c3oKr4XTTiM8+vYXVTTF3to6Kqh6O9KNH5fWPJ2XZi3LRb+O 4FRvT7iF+MuswzoBop4ic0gULkiBpJGqlWtGhbyGbBf3+S9Xf3u8rmqVqnIT3s3Pbl+o 4W2bRLM79KYC9DJOin2fjf3bcRBThm6sDlHRC+P7qwDHBteV8yLOTkBbD1iTu2atCjCN 7tdR0vIbhGdIJMhl1IJxk9tHhtsjJIjLhH3F+kpZ7t8C0hXpf55rx+lFP4obLtMTKaA3 AQKmuOD05/HHVIHdzuUlyaiZgaEcpxNP4W2yj2wnkWBSE4DzU9t47fXZ4xMaU4090iGO 5xQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749240881; x=1749845681; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/pOlbe3MdSC0jMGHRiqsR0heCO7fkUw9IeeYp8MsyMY=; b=CM6Uvcmm0pgGMsvYXxdVjOdmnXksz0VfAFJVscBaZITMiJFFltw4+027pRAl/bFpA1 EoTkV7YSxN0wxlUbGYe5ZMoRAG72jYeaGbLVNS5tOVux6s3anxdtMStIR7GZSjECkmMg FuLC4d2SRpIHAM62tX/cb9iIhrGh6E8Lf4JlQFdTuaa3ALqjRalg6YZ+cdiPuSCPYe7+ uA/WcPoerZlXd6AFcOgDWRlXLYxH3v1xPWdGgabrHe27DPnVMeOVmPn8ODiVEQQhpiJo Pi0P/SiBqYBIltTTuo6P7vqeOsuixSGqcvWCqb/PBFjaxWN0iUbEd3geoBtXCx2cbJxS dXUw== X-Gm-Message-State: AOJu0YxA36d8V+EojHVan9pOn+XAWt69WVFe4obpAigdt8tprxEcO8xj 6g0/mMleCJTuYSVnguJUNxJb9seKwxE595/9EZ6VKPf3dbitkjtsENBGpJ2+Yw== X-Gm-Gg: ASbGnctlaa3shNLnXsv02JOScYotzot08l8YwJdaYrP4b0NF4U7Pste+e8n+xGUtX0V YieFi8oZgDtehjzcKn/p6iFTGbyNb5WIKG2iRa3vTkRuYOLAYIZXV2P1lALHaDkwCvhXs5U/zac 0Fd66/Imt3Antz5McpGlqsDirVk92zN5vImz2yA0TXrOe+/kFl5QirPB8Ua54uxTx/y8rZQrQiy VoXEmTFaaraIRRHqA1ltfhdQqHRsgQT08aKUFUIE+wiibYOWowykyr0Wc5plrrLP8gqWnOs2r7b wMA6vEDYQNDxK62ymV6x38eUjuiR8gziob5DyYj3ILaNWCK/Uvz83YQTjhI7ZefpZu++bfae15h iguTlgcbiFWgC/c3YbP5iayYbdeY= X-Google-Smtp-Source: AGHT+IElaFjlnCMZlFFwpvDdgn5S2vgAYvZPx2fNgPk5k4TcvK2vpSEqwb8IDXOUh8jxJMa9uEh9vA== X-Received: by 2002:a05:622a:16:b0:4a4:3fb2:113c with SMTP id d75a77b69052e-4a5b9eddf7fmr70178281cf.45.1749240881266; Fri, 06 Jun 2025 13:14:41 -0700 (PDT) Received: from gauss.local (99-104-239-121.lightspeed.livnmi.sbcglobal.net. [99.104.239.121]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4a61114fbb2sm17860221cf.4.2025.06.06.13.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jun 2025 13:14:40 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Fri, 6 Jun 2025 16:14:35 -0400 Message-ID: <20250606201435.177677-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: rename POSIX ioctl check X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: ramiro.polla@gmail.com, Leo Izen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Commit 00b64fca55a3a009c9d0e391c85f4fd3291e5d12 introduced configure detection for HAVE_POSIX_IOCTL but unfortunately this conflicts with v4l-utils version 1.30, which itself checks for #ifdef HAVE_POSIX_IOCTL in a public header and erroneously determines it to be true because we define this to be 0. Since this is only used for avdevice/v4l2, we rename this to something else, namely ioctl_posix, simply to prevent the name conflict with the file /usr/include/libv4l2.h at least until they can upstream a fix on their end. Signed-off-by: Leo Izen --- configure | 4 ++-- libavdevice/v4l2.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index de1b88150f..e6f2bec87f 100755 --- a/configure +++ b/configure @@ -2545,7 +2545,7 @@ HAVE_LIST=" opencl_videotoolbox perl pod2man - posix_ioctl + ioctl_posix texi2html xmllint zlib_gzip @@ -7275,7 +7275,7 @@ xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint check_headers linux/fb.h check_headers linux/videodev2.h test_code cc linux/videodev2.h "struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_sanitized struct_v4l2_frmivalenum_discrete -test_code cc sys/ioctl.h "int ioctl(int, int, ...)" && enable posix_ioctl +test_code cc sys/ioctl.h "int ioctl(int, int, ...)" && enable ioctl_posix # check V4L2 codecs available in the API if enabled v4l2_m2m; then diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 0ae6872338..c38ecbb378 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -111,7 +111,7 @@ struct video_data { int (*open_f)(const char *file, int oflag, ...); int (*close_f)(int fd); int (*dup_f)(int fd); -#if HAVE_POSIX_IOCTL +#if HAVE_IOCTL_POSIX int (*ioctl_f)(int fd, int request, ...); #else int (*ioctl_f)(int fd, unsigned long int request, ...); -- 2.49.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".