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 B4B2942B10 for ; Wed, 13 Apr 2022 15:22:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A703C68B36E; Wed, 13 Apr 2022 18:21:58 +0300 (EEST) 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-Google-Smtp-Source: ABdhPJy9QT/40iFcCXhrP2QF9cmBaMugjweUDWCdCKdc29SsyYkfV7K8PrxnmLIVzdIVi9JrhmY1gw== 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 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: 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; -- 2.35.1 _______________________________________________ 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".