From patchwork Sun Dec 3 12:56:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 750625 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=ps.report@gmx.net header.b="tf82c8mD" Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACB2FC for ; Sun, 3 Dec 2023 04:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1701608172; x=1702212972; i=ps.report@gmx.net; bh=phYltxpOafOsAodpRPG/7Zfg4A38u1if+bY8GQ0daPw=; h=X-UI-Sender-Class:From:To:Subject:Date; b=tf82c8mDXj9o2mNiMpJatjE44K4n5sh0ZYVsF3pa6PDfcjoYhQshlk43zHjfgfFE qCG3yCRywaXehRc/ZMujnGh3RW2CJOIQbrqyqilLt6bqlf/mZJBFQd5+94+kPIAUi fZtjG06r/vsKQ8Yi2bNErVUzmqwX6IbJW7yZ3IJ2dzyLfKvGE86KRNr4DQmdAkMpM 3psba3J518PLKnX3+6kW3FpdD21CeD9teXr4dJRqRV0ar9f3WB3Du/ir9iFNO/WUw QKPK1d7fvwXG6erefx096II01rD89QNbSiByBDqXoedkbJFG7NMuxcBNO7uzO3x0q RRjSXUiEPhnTHYvaEQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost.fritz.box ([62.216.209.34]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5GE1-1rHmq93XpV-0116rS for ; Sun, 03 Dec 2023 13:56:12 +0100 From: Peter Seiderer To: linux-media@vger.kernel.org Subject: [PATCH v4l-utils v1] media-info: add missing sys/stat.h include (for dev_t) Date: Sun, 3 Dec 2023 13:56:12 +0100 Message-ID: <20231203125612.31945-1-ps.report@gmx.net> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:gOd+zdX1z4LOarEg7EHKXVgViMbPnqQ28peGKWDCMOe5Daa/KmL 3IF0/d/NezaAEDxSn+XBYyM3Q8JnZAA+ecyoxFFbHlOTIS/2X+FY+jjb6yPJdf15ycsGc44 jIzNcQp4bwqwLxRLHK6hz47NN4wLANsZHCODrM/2BVx3G3Lf/rpUIlFLlKR61aXjNzCQRbV UyEAFlDSqkC5r1OyFgWxg== UI-OutboundReport: notjunk:1;M01:P0:0GSaGGSiT7I=;WgfzoZ9/oYxuYHa27jHJ8iAa3M6 q0kbymv3BeCSb8c+r63sjG20RJtqBWECIQhhCz7x/yCVpbNjBXpJ9DCzR5iY5RbVxW3wvzOUb 2QzQAlaOi2BGZnv3eyoWC7QrX58h5peHxsDG7GLFfvlyujeR6KUQetIokqGwH4puV1ZArkEto m31k6FZXDK7dU3RVIKQ64K8Ys4t3Ge+zAW57lwxwIevyST5qP3n7VmJ4aXzNdYZuiUJ8Cg+aF wsymf7zMDkzvwoZgzKSlQZdRAciv9CtdZ1N1tAxB+sX2dchtYy7bbPyFDIF4YS9TqToI8vmdb 4ldY+SsygMI64IDm+y+gvNHNweQz8KfqrP60gwmmbontryMBw/5SI/C78ohvXSEgZje2OQIbS 7wdWGAR58WIDLAQxtCd4UnCLYvPrOTtf/LRKQRsCzh3nk83z05if2dyM9FNEvi/WV/muUs7Zi U60f7XdXzKfGdlWNgRtZJEpHgWEcwscvmdxKT99ci3B9qLy9VkrpGUJHKF/dt4Svum2+Bda8a nWuQj34QtNMKJ+91SnZa5ka1qBIzCgLexTp3gQe9sSV+ofGZxNTqxR3GmYLHYYeVefDA7Iq1b wf5R7Jpw5byxacgbBHvh3RvIQKlOoIk7HxvLdKQByEjCygk+umXelOwhQMc0iV8tGNMj/EP77 heEPsGhtE8n6poJoyd94045ADSadkbG2lhdd6CfxVwcazCJQBO0TGOARk0tQtEMvY0qStziTp 4HCxtsDGRjuidbx82gXKV0oWLRFv0wHknrId+yXwAnfW+wkWH+qGvpCh0xFRavssfNCFL8FE2 YwUi+LyAhIs79O477WUwGQ06AfjIw5fTzbVIl3jhW5Ef4mokEb14s57RmyOVDrzQ0d7dz6uZJ 6AJIpIk2GK74yb1TMw/PwsXQcxrhsszxTxPqtkuqTZEHxGaZ27n1PwATVRZXucX81XVTjVulK PmSZxtv5l7JlabkFFg1JMAMHbCU= Fixes musl libc compile failure: In file included from ../utils/v4l2-tracer/v4l2-tracer-common.h:11, from ../utils/v4l2-tracer/trace.h:9, from ../utils/v4l2-tracer/trace-helper.cpp:6: ../utils/common/media-info.h:40:34: error: ‘dev_t’ has not been declared 40 | int mi_get_dev_t_from_fd(int fd, dev_t *dev); | ^~~~~ ../utils/common/media-info.h:48:39: error: ‘dev_t’ was not declared in this scope; did you mean ‘div_t’? 48 | std::string mi_get_devpath_from_dev_t(dev_t dev); | ^~~~~ | div_t Signed-off-by: Peter Seiderer --- utils/common/media-info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/common/media-info.h b/utils/common/media-info.h index a862b70b..c0dd6304 100644 --- a/utils/common/media-info.h +++ b/utils/common/media-info.h @@ -6,6 +6,8 @@ #ifndef _MEDIA_INFO_H #define _MEDIA_INFO_H +#include + enum media_type { MEDIA_TYPE_CANT_STAT, MEDIA_TYPE_UNKNOWN,