From patchwork Wed Apr 13 15:21:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Gaiser X-Patchwork-Id: 35305 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:671c:b0:7c:62c8:b2d1 with SMTP id q28csp261986pzh; Wed, 13 Apr 2022 08:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL4UfTnCZd3eubHzAcOG1slFBfUKtGH5wOpdR9oI6AWoDCK8rmWqWVy3pRUPJt1Px9DjjD X-Received: by 2002:aa7:d753:0:b0:41d:732b:f2d2 with SMTP id a19-20020aa7d753000000b0041d732bf2d2mr20135956eds.278.1649863322140; Wed, 13 Apr 2022 08:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649863322; cv=none; d=google.com; s=arc-20160816; b=BH4xrPGzcKQCS6EegHYJwioFG9D3ivZ6sfOiV4VRUbY6acfxvK5xmQwd1n6fY4svfe LR6VbyPOrfkwmWMvvMadhGDARuaq+Zaa4PfNJTnvcs+M12ppkMFUKog9DKqMZun/stQ4 Avo+06SmMPHgkq1zMbeBh3h3IoSNWzYsObM7i8Ik/YSFHF2LOsZxWii+TpShgMxtVSGI KGTjqi4prIS+aDtTE1ephe2snHQ4ymZ/7uf0mqo4ft1mnWjexhE2nOpKp3KmNt//iEuw cNNiUTmLGuigrsGPIsCwIXJTYTT8NMSxYwfvHJnW3sqGV0Hn5X0PQeshUA1gp8gbNFn0 4WwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=zEOUK7d6gD6apzlraHcp8T+KmY7olzihcCw0Q1YO+jY=; b=rT6L0egBID8C7+WXG+ORJR8owY4BQideaRSzIWLwXzK2IRlT69QSIx5f4NqjCJYg9G zL1hGczoQA8yX+rpcB0VmWSJBwLpYUj6zAE4/RzHk0L5vbnfJ+wbi5uQaGYwV01lfqtJ JDgKzgKU5ci8mlokU5zUL0gALHZtvbhddP7QgRlj9+JbUaBhaZHfE54KvRaqnQHlG8zx bz+bkXfk8du1tqdvLDqKt9Kg2J/qyUPAJSy7Zc2faiGv5jWUWOff0xR19yjrAM343Oil uBWoQ0jSf/AV6Bdue93Lw/vSE3dmg0B45BD7Z8a6fOmE2WIGfokxP3ZRo/fTc9zvlyxE /emw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=fS0FHtUp; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id c12-20020a056402120c00b0041d6b17295esi1812525edw.360.2022.04.13.08.22.01; Wed, 13 Apr 2022 08:22:02 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=fS0FHtUp; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E316868B37D; Wed, 13 Apr 2022 18:21:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 915FE68AEE2 for ; Wed, 13 Apr 2022 18:21:51 +0300 (EEST) Received: by mail-ed1-f53.google.com with SMTP id v4so2797542edl.7 for ; Wed, 13 Apr 2022 08:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HOtSJuPA049fi9kFLtmBjj3PcDFr8v/8C0vOok3wBu4=; b=fS0FHtUpNzo3QZm02hXLuyoPR4kMErj3tdOQrUzerYRAVeAiyYHyyJpk9cgxBhPFYR HGTkA/o0hHR4MrSOQf1ksfusFNvpdaoyOMMKAIibMc1Wc9CrwNflE/JwcvSJj3rC88ys dbVotSoD/xWiFSIjRaeWcLXd3hJ2JYDxVhksKh4Y3TV4NDj7epYGv09rrPOsMGs4TZdz Ao3PFuRKhNvNogpsP6QI+OrzfYpej4VoRNs6/oqcJ0DeMdDqRPsLtldBiMj5UObQSSTe noTp96z99EYVQJcgVzYDJ509XTZ3KNqxR5CGklAhBxZKRh3+ryBaLxtZoas30a1n9ixS LAdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HOtSJuPA049fi9kFLtmBjj3PcDFr8v/8C0vOok3wBu4=; b=5p5dyc8TxX/vF9JCM2DT96p8Jt6Nm3tG4lEuxvfrrjisUj5OdZ4PVDmSndYoupK2cg xpylNr0Y+DOGHwrIezjft5PTEUAE4HN6bWgzt+ZOcF/oFsnqqCh7b4J4JOmYt0LcttNq CzTa2H8ku8hueCzO2Cz1o0WTjStCMQlj5sQzxY2Rdq9XuQ6918cJ4FVDmU6KqqcSv2mk UmuoJk5g7F/bl6e/8q3x7GvlJvfJAJDv3DT3z66r0ngDkMyrvi5QmmjegP5H6RQDVn9e 4A7IFBE+DyImRSrxNeycSXTbDpJLnPTLSw+yh3U10w/+gEP2TQd2y2JDdoXQJ6GLjyNo rP9Q== X-Gm-Message-State: AOAM531oakUvgZZg4AhQe7/n19TODq6fZob00Y5vafjEoD54Dp6Ac8je AMrNJaPgOx066hfzMtMuCornsZNd/Oo= X-Received: by 2002:a05:6402:321b:b0:41d:888a:3ff0 with SMTP id g27-20020a056402321b00b0041d888a3ff0mr11750672eda.167.1649863310546; Wed, 13 Apr 2022 08:21:50 -0700 (PDT) Received: from localhost.localdomain (92-110-137-10.cable.dynamic.v4.ziggo.nl. [92.110.137.10]) by smtp.gmail.com with ESMTPSA id d7-20020a170906174700b006e80a7e3111sm100554eje.17.2022.04.13.08.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 08:21:49 -0700 (PDT) From: Mark Gaiser To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Apr 2022 17:21:42 +0200 Message-Id: <20220413152142.31981-1-markg85@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v1] avformat/ipfsgateway: define PATH_MAX 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: Mark Gaiser Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 9sMzMnsqWMFE PATH_MAX is posix. Some compilers (MSVC) don't define this thus failing to compile the ipfsgateway file. Defining it fixes the compile. Signed-off-by: Mark Gaiser --- libavformat/ipfsgateway.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/ipfsgateway.c b/libavformat/ipfsgateway.c index ed37e552dd..9b0d3dea59 100644 --- a/libavformat/ipfsgateway.c +++ b/libavformat/ipfsgateway.c @@ -25,6 +25,12 @@ #include "os_support.h" #include "url.h" +// Define the posix PATH_MAX if not there already. +// This fixes a compile issue for MSVC. +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + typedef struct IPFSGatewayContext { AVClass *class; URLContext *inner;