From patchwork Fri Sep 22 16:49:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Cheng X-Patchwork-Id: 43872 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:38a7:b0:15d:8365:d4b8 with SMTP id n39csp953291pzf; Fri, 22 Sep 2023 09:50:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4/edHOi9rf6gQUitD2AzPpoMNEatbnnmNasw/GURl8vkBTVD0Hl7W7tSka5wwCdhBYIC/ X-Received: by 2002:aa7:d3d5:0:b0:52a:1c3c:2ecc with SMTP id o21-20020aa7d3d5000000b0052a1c3c2eccmr24827edr.25.1695401403035; Fri, 22 Sep 2023 09:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695401403; cv=none; d=google.com; s=arc-20160816; b=UfJploRoLC/144vXmpopbsRJqsQECGGtFsONQgYX+quyw98g0dXVMPSdNCET4Typhp eeEl6dn/nUPoA4adpVVKjov54mNOUqToSsYUo9On270AWQsMUPzE4UNjHLyC/1jZw6PZ ELbBKHq6HeRbYT3l+6KZFhRef1sd1c/WzHEMf4pSASjrDsbVcO+/FeuaD3x+WPETOoIk c/hjbhZsI16ce6ob8COmmAclj1cP64zoTrVC8pfYzpanO5MouM8X5csFXq38M0v7sZMO gNgLmDbuUZvALegT/gCnkQf9LYxt6HSKOX8M96aeNUVuOuI5kyjEhRij7fQHALDKm7Oc IZ3g== 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:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to :delivered-to; bh=KXpHt+Od8X7Dr1fs7iYSuVwwflbrErhf3yexZ+3Hf98=; fh=gclhhGXccg6u5Ag9tYQBjkHCTtwdm1Rs9cVW3gQSMVo=; b=QKBTbiytkVhRI93UHBg3DKcqK+SsgbT/UaMXVfE5tFsnIdAi76fHeiiJ5dz+aNeS0H i2z/IUONcszbcVyyjqkANA89VUuTXNEYTJZVlJbKFaMB9axg5WcZCViLsJEFhZxDwJdu 5v+vFTDD+YA6Dc8VuXRfy7dHw1psvdqeuTvLn9wmXPLobIbmDUHtD0GrpO7QDWMm5jlt PvxGgCMIElgallfxMgxr2fhKYIMvfk1Wpr4gjsYZ4YsIyG23Y+o6RDevoi+UgXbaofTf 4/hC4BF80MsD0YcMDFi0w/ZlOP3Au5/WiRx/13CXZm62zN35a7JJDMlgq+yNbEPBX2T+ uZjg== ARC-Authentication-Results: i=1; mx.google.com; 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 t14-20020aa7d4ce000000b00530ea522c59si3704216edr.195.2023.09.22.09.50.01; Fri, 22 Sep 2023 09:50:03 -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; 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 6CAA168C9AD; Fri, 22 Sep 2023 19:49:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out-195.mta0.migadu.com (out-195.mta0.migadu.com [91.218.175.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F2BD668C4F4 for ; Fri, 22 Sep 2023 19:49:51 +0300 (EEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. To: ffmpeg-devel@ffmpeg.org Date: Fri, 22 Sep 2023 12:49:22 -0400 Message-ID: <20230922164921.100331-2-ben@bcheng.me> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Subject: [FFmpeg-devel] [PATCH] hwcontext_vulkan: guard unistd.h include 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: , X-Patchwork-Original-From: Benjamin Cheng via ffmpeg-devel From: Benjamin Cheng Reply-To: FFmpeg development discussions and patches Cc: Benjamin Cheng Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3BuRmZqXLwoq win32 typically doesn't have unistd.h, so always including it will break MSVC builds. The usage of those POSIX functions are already guarded by _WIN32, so use that to guard unistd.h include as well. --- libavutil/hwcontext_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index c676f4fc57..6c573abb8b 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -27,10 +27,10 @@ #include "compat/w32dlfcn.h" #else #include +#include #endif #include "thread.h" -#include #include "config.h" #include "pixdesc.h"