{"id":3049,"url":"https://patchwork.libcamera.org/api/1.1/patches/3049/?format=json","web_url":"https://patchwork.libcamera.org/patch/3049/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200307212530.28053-2-laurent.pinchart@ideasonboard.com>","date":"2020-03-07T21:25:29","name":"[libcamera-devel] test: file-descriptor: Fix undefined O_TMPFILE compilation error","commit_ref":"291d4878bba51603f875257d5b6b3c99b62b6685","pull_url":null,"state":"accepted","archived":false,"hash":"6c7b586be00c653797cc786cbb0e08a8d65afa5c","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3049/mbox/","series":[{"id":712,"url":"https://patchwork.libcamera.org/api/1.1/series/712/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=712","date":"2020-03-07T21:25:29","name":"[libcamera-devel] test: file-descriptor: Fix undefined O_TMPFILE compilation error","version":1,"mbox":"https://patchwork.libcamera.org/series/712/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3049/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3049/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1A69D6193A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  7 Mar 2020 22:25:39 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9128E5F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  7 Mar 2020 22:25:38 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1583616338;\n\tbh=IBNnM0k45YzFlqAjBvW5oihu5IxYwvZM32F7QByuIBM=;\n\th=From:To:Subject:Date:From;\n\tb=L+VdCSvx0Ma7JirWIXVw5+p7hTjVktU8lEhUaiqex8WuDCdVf7IKe7jYkG8sb5PNu\n\tHmNVOIAjg02g55LVVmIoSnv5iZbDoN+spwrBgjGlwY/T6d+vgMrCZS49qCHA8cpwlT\n\ta8DqlU4i7I+Bl2XYhmHH7TYcppVPCltO8BgdlD2Y=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] test: file-descriptor: Fix undefined\n\tO_TMPFILE compilation error","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Sat, 07 Mar 2020 21:25:39 -0000"},"content":"O_TMPFILE is not defined by all libc implementations. libcamera has an\ninternal definition in utils.h to work around this. Include utils.h in\nthe test to fix the compilation error.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/file-descriptor.cpp | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/test/file-descriptor.cpp b/test/file-descriptor.cpp\nindex 3e5e880093e7..e467f3a7145e 100644\n--- a/test/file-descriptor.cpp\n+++ b/test/file-descriptor.cpp\n@@ -14,6 +14,7 @@\n #include <libcamera/file_descriptor.h>\n \n #include \"test.h\"\n+#include \"utils.h\"\n \n using namespace libcamera;\n using namespace std;\n","prefixes":["libcamera-devel"]}