summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/v4l2/gstv4l2src.c4
-rw-r--r--sys/v4l2/v4l2_calls.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index f28c59a6..7825956b 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <string.h>
#include <sys/time.h>
#include "v4l2src_calls.h"
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index 6f01328f..2ec66510 100644
--- a/sys/v4l2/v4l2_calls.c
+++ b/sys/v4l2/v4l2_calls.c
@@ -28,6 +28,7 @@
#include <sys/mman.h>
#include <string.h>
#include <errno.h>
+#include <unistd.h>
#include "v4l2_calls.h"
#define DEBUG(format, args...) \