diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-07 22:22:53 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-08 19:35:23 +0200 |
commit | 291d4878bba51603f875257d5b6b3c99b62b6685 (patch) | |
tree | d7d39ad76aedb928fd29e7b634cf979475c378f9 /test/file-descriptor.cpp | |
parent | 1268751ce6d170dc1aa968f1314c0bb5852b1b8e (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.cpp | 1 |
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; |