1 From c1ccd15d95f4a649dc192c96005409693eb31d2c Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <peter@korsgaard.com>
3 Date: Mon, 15 Sep 2014 14:51:24 +0200
4 Subject: [PATCH] gstv4l2allocator: O_CLOEXEC needs _GNU_SOURCE
6 Similar to 94f3d6fc / bz 709423
8 On some systems (E.G. uClibc and older Glibc versions), O_CLOEXEC is only
9 defined when _GNU_SOURCE is specified, so do so.
11 Upstream bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=736670
12 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
14 sys/v4l2/gstv4l2allocator.c | 4 ++++
15 1 file changed, 4 insertions(+)
17 diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c
18 index 2bc51c4..a5c9626 100644
19 --- a/sys/v4l2/gstv4l2allocator.c
20 +++ b/sys/v4l2/gstv4l2allocator.c
26 +# define _GNU_SOURCE /* O_CLOEXEC */
29 #include "ext/videodev2.h"
30 #include "gstv4l2allocator.h"
31 #include "v4l2_calls.h"