From 291d4878bba51603f875257d5b6b3c99b62b6685 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 7 Mar 2020 22:22:53 +0200 Subject: test: file-descriptor: Fix undefined O_TMPFILE compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(+) (limited to 'test') diff --git a/test/file-descriptor.cpp b/test/file-descriptor.cpp index 3e5e8800..e467f3a7 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; -- cgit v1.2.1