From patchwork Thu Jan 11 10:33:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 45566 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:bf2f:b0:199:de12:6fa6 with SMTP id gc47csp1600881pzb; Thu, 11 Jan 2024 02:33:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IETov8JyRk4UNT4jC8i2KxtWoeCT+3ns9DulqD5IcLBkE2fPpt4EyJZt1wgF8PMZ0BU6rCA X-Received: by 2002:a05:6512:2007:b0:50e:e0af:4efb with SMTP id a7-20020a056512200700b0050ee0af4efbmr275950lfb.104.1704969195607; Thu, 11 Jan 2024 02:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704969195; cv=none; d=google.com; s=arc-20160816; b=yCrzV7dI7E2sbos4RvW5L4w81hPx1nN9meVGv8yxYvxhVFTF/JQA5wmFZ+fGOLC1uG CXfL3P//cx0xFxbVkSC5DSO9WXFjiR49Rn+U6brVHM60b9vVgnrPQxsUtD0pQYPSJHN9 0DCxqS+URBgha+9eWrE8UXk1fhDaTjLdxyUiDQ0lzT56wVJnTJAP5AIW79FNW7TzyYb3 29i51XNpPj/m13EDLVzFJlxHIo+QgrJGCkPbGmf6S5oCEDg25gKhEzbSfONiAcSQD2df Cuy4jkghTlnH/n8NZ7JO74sZHFPQACfkwJHzLMg+NkjwVvSYy9EF88jKx+lQudEnq53D BOtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=WHFxF3sjFw7Xf2nyLpX+ZTV047FB/XnRNSD2oyTmL28=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=TReiIDKAEkLPqR5YVol41PZoxNPHWZr1PqItXmvlHV0p02DUmXQxb7zwgdNn3Wdh1n YcfB88gSRzVE+9gBiOCxFQ1X2aBQI/2hwpySugQWhmxEezVWLOJVQofAzumsm9zH05gp /Z/D1wIFUcYOKnpy7CWQwkWZexr3KipnUnt1NcHiytz0QdtkdkO/DcCx+YlbN2/ahfUP AZ2AwE09n93/va/B3if+3xX9mSxjmXr5ZOAxpLHuxDnC8kUv3u8okYN5VKMyDdl6ttgt WBhlY8JPRUShti3iGDihhjjzkHWO2phMpNsnvnIjBb1at++x7n92sR/XLFA2gGqJaNI/ 1XbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b=Qnq+xOdn; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id h39-20020a0564020ea700b005588a9408c3si419735eda.99.2024.01.11.02.33.14; Thu, 11 Jan 2024 02:33:15 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b=Qnq+xOdn; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5762A68CF30; Thu, 11 Jan 2024 12:33:10 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7E18068AB9C for ; Thu, 11 Jan 2024 12:33:02 +0200 (EET) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50e741123acso5891881e87.0 for ; Thu, 11 Jan 2024 02:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1704969182; x=1705573982; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=aeusXQ7i6fgUHwzq9dhtUs1FnuN5RZElkneRV4W4HyU=; b=Qnq+xOdnstDFzRFCMS4oFLTVTV4vk2l+ilrc+SMQb5LBJhWyvWEHWcvuSRE0fECd4p 3TNuOJPCX9pctKQKClw2/SgEqrrWafY8UJFhAUSRvNawhRdRqR37DVvoq6SOQPOGVOVa o9kYNPirbPNp9lKWNzMg4SeARIjWh2CxXpeRzwpKF2rkRoAPjMfjra+SN2jdpcXlGTgZ W3uDzoAXglr2s2hQ3g2Vg+DXfox+jndB6PYLEXy/GaDdp5Zyc/GOj32l/TTgZQk/EkTO HyBAdhTQi3Gx+pE4b3rAKONDbOnk0ZzxwbYzyEaeV6bup2lM0mS+MOEC0RG1YESzhhGp y2Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704969182; x=1705573982; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aeusXQ7i6fgUHwzq9dhtUs1FnuN5RZElkneRV4W4HyU=; b=F/QOXGfVTta/TtBGVKxnlSaKRURK5NI7kMfq+sNMIUTuumZ4la6r0Xvl20diolaMiG BOfcYfS/CCXBv0qg35xSHQd2E5QGXpFsdaFySowR2updzrFZTWW9WPi8MEggWebXmux1 wEC2eiBaGbS4lACQGWr4InshZxJ6Gvdz3slaavWDLTd6RSMXVAL//aZA9Bb+mi3q2z6V 4G22xEEtYN3OQQ8llz7EcIqZGER8sFWVrY3fM/wxr9zJbHAHrj7Gum7OzGGKOZE2thb2 HFw8734cJz3284pQnphj9fdjnVYSKrW0PvHG5P8Wi3YkO9LLkwZsvSVSvrh5YMPiE/Vj aeww== X-Gm-Message-State: AOJu0YwEEJQ1asHwi7PLNqLCQXK9MIgZWioTQFckLYHIOXm28pXAnqoP WqNatrWfNSrk3PQBrposgqfHugl60pi0FyEvbmxHKM+Rnn2l X-Received: by 2002:a05:6512:2116:b0:50e:ac2a:6b6d with SMTP id q22-20020a056512211600b0050eac2a6b6dmr426214lfr.119.1704969181846; Thu, 11 Jan 2024 02:33:01 -0800 (PST) Received: from localhost (host-97-144.parnet.fi. [77.234.97.144]) by smtp.gmail.com with ESMTPSA id b2-20020a196442000000b0050e69ec7f22sm149777lfj.92.2024.01.11.02.33.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Jan 2024 02:33:01 -0800 (PST) From: =?utf-8?q?Martin_Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 11 Jan 2024 12:33:00 +0200 Message-Id: <20240111103300.68446-1-martin@martin.st> X-Mailer: git-send-email 2.39.3 (Apple Git-145) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: Check for the header sys/mmap.h when checking for mmap 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: InvrFM9nMcX4 Whenever mmap is used, we include sys/mmap.h unconditionally within HAVE_MMAP ifdefs. When building for a system (e.g. mingw) that normally lacks the mmap function, but if building with profiling enabled, the profiling runtime which gets linked in in each test executable, can contain a function named mmap, causing stray detection of it. This fixes an issue reported at https://github.com/mstorsjo/llvm-mingw/issues/390. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 0b5e83bd20..99fa5260a4 100755 --- a/configure +++ b/configure @@ -6457,7 +6457,7 @@ check_func getrusage check_func gettimeofday check_func isatty check_func mkstemp -check_func mmap +check_func_headers sys/mman.h mmap check_func mprotect # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that check_func_headers time.h nanosleep || check_lib nanosleep time.h nanosleep -lrt