From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 4EC114860E for ; Thu, 11 Jan 2024 10:33:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 149C668CF16; Thu, 11 Jan 2024 12:33:10 +0200 (EET) 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-Google-Smtp-Source: AGHT+IEbh3kRO2R+xZyWfF5FvEBLxTTxpClMhR0HHv872DmRPt7mj0dk2xinXf3o/Ht7Z2XwguF8lA== 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=20Storsj=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 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: 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 -- 2.39.3 (Apple Git-145) _______________________________________________ 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".