libcamera: formats: Add missing include

Include errno.h header to fix missing definition of -EEXIST error code:
src/libcamera/formats.cpp:43:11: error: use of undeclared identifier 'EEXIST'

Fixes: 1cf709b1d2 ("libcamera: formats: Add ImageFormats")
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Jacopo Mondi 2019-06-19 16:43:34 +02:00
parent 329b38d254
commit d78fbdba87

View file

@ -7,6 +7,8 @@
#include "formats.h" #include "formats.h"
#include <errno.h>
/** /**
* \file formats.h * \file formats.h
* \brief Types and helper methods to handle libcamera image formats * \brief Types and helper methods to handle libcamera image formats