cf133e00af604f32de71628a597bc3f7940c439f
[buildroot.git] /
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
5
6 Similar to 94f3d6fc / bz 709423
7
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.
10
11 Upstream bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=736670
12 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
13 ---
14 sys/v4l2/gstv4l2allocator.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
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
21 @@ -21,6 +21,10 @@
22
23 #include "config.h"
24
25 +#ifndef _GNU_SOURCE
26 +# define _GNU_SOURCE /* O_CLOEXEC */
27 +#endif
28 +
29 #include "ext/videodev2.h"
30 #include "gstv4l2allocator.h"
31 #include "v4l2_calls.h"
32 --
33 2.1.0
34