diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 00c6086aa0..f5396d93f6 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -26,12 +26,16 @@ # include #endif +#if HAVE_DECL_V4L2_MEMORY_DMABUF +#ifndef _GNU_SOURCE +# define _GNU_SOURCE /* O_CLOEXEC */ +#endif +#include +#endif + #include #include #include -#if HAVE_DECL_V4L2_MEMORY_DMABUF -#include -#endif #include "gst/video/video.h" #include "gst/video/gstvideometa.h"