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>
This commit is contained in:
Laurent Pinchart 2020-03-07 22:22:53 +02:00
parent 1268751ce6
commit 291d4878bb

View file

@ -14,6 +14,7 @@
#include <libcamera/file_descriptor.h> #include <libcamera/file_descriptor.h>
#include "test.h" #include "test.h"
#include "utils.h"
using namespace libcamera; using namespace libcamera;
using namespace std; using namespace std;