summaryrefslogtreecommitdiff
path: root/test/file-descriptor.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-07 22:22:53 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-08 19:35:23 +0200
commit291d4878bba51603f875257d5b6b3c99b62b6685 (patch)
treed7d39ad76aedb928fd29e7b634cf979475c378f9 /test/file-descriptor.cpp
parent1268751ce6d170dc1aa968f1314c0bb5852b1b8e (diff)
test: file-descriptor: Fix undefined O_TMPFILE compilation error
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/file-descriptor.cpp')
-rw-r--r--test/file-descriptor.cpp1
1 files changed, 1 insertions, 0 deletions
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 <libcamera/file_descriptor.h>
#include "test.h"
+#include "utils.h"
using namespace libcamera;
using namespace std;