From patchwork Sat Mar 7 21:25:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3049 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1A69D6193A for ; Sat, 7 Mar 2020 22:25:39 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9128E5F for ; Sat, 7 Mar 2020 22:25:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1583616338; bh=IBNnM0k45YzFlqAjBvW5oihu5IxYwvZM32F7QByuIBM=; h=From:To:Subject:Date:From; b=L+VdCSvx0Ma7JirWIXVw5+p7hTjVktU8lEhUaiqex8WuDCdVf7IKe7jYkG8sb5PNu HmNVOIAjg02g55LVVmIoSnv5iZbDoN+spwrBgjGlwY/T6d+vgMrCZS49qCHA8cpwlT a8DqlU4i7I+Bl2XYhmHH7TYcppVPCltO8BgdlD2Y= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 7 Mar 2020 23:25:29 +0200 Message-Id: <20200307212530.28053-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] test: file-descriptor: Fix undefined O_TMPFILE compilation error X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2020 21:25:39 -0000 O_TMPFILE is not defined by all libc implementations. libcamera has an internal definition in utils.h to work around this. Include utils.h in the test to fix the compilation error. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- test/file-descriptor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/file-descriptor.cpp b/test/file-descriptor.cpp index 3e5e880093e7..e467f3a7145e 100644 --- a/test/file-descriptor.cpp +++ b/test/file-descriptor.cpp @@ -14,6 +14,7 @@ #include #include "test.h" +#include "utils.h" using namespace libcamera; using namespace std;