summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-09-15 15:02:36 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-09-15 15:02:36 +0200
commit117e864a53834c5e0bcdb9e764fcd45119f373f7 (patch)
tree8ad6f077b66e430b65ebcf0bce1c096a6951e5ad
parent6de4afc3b4353327eb5a2dc57b9f449a4d14a969 (diff)
downloadbuildroot-117e864a53834c5e0bcdb9e764fcd45119f373f7.tar.gz
buildroot-117e864a53834c5e0bcdb9e764fcd45119f373f7.zip
gst1-plugins-good: gstv4l2allocator: O_CLOEXEC needs _GNU_SOURCE
Fixes http://autobuild.buildroot.net/results/ee9/ee985d94da6a7115b6e62cf407e3c6a90eb3e4bf/ On some systems (E.G. uClibc and older Glibc versions), O_CLOEXEC is only defined when _GNU_SOURCE is specified, so do so. Patch submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=736670 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/gstreamer1/gst1-plugins-good/gst1-plugins-good-01-gstv4l2allocator-O_CLOEXEC-needs-_GNU_SOURCE.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/gstreamer1/gst1-plugins-good/gst1-plugins-good-01-gstv4l2allocator-O_CLOEXEC-needs-_GNU_SOURCE.patch b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good-01-gstv4l2allocator-O_CLOEXEC-needs-_GNU_SOURCE.patch
new file mode 100644
index 0000000000..cf133e00af
--- /dev/null
+++ b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good-01-gstv4l2allocator-O_CLOEXEC-needs-_GNU_SOURCE.patch
@@ -0,0 +1,34 @@
+From c1ccd15d95f4a649dc192c96005409693eb31d2c Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Mon, 15 Sep 2014 14:51:24 +0200
+Subject: [PATCH] gstv4l2allocator: O_CLOEXEC needs _GNU_SOURCE
+
+Similar to 94f3d6fc / bz 709423
+
+On some systems (E.G. uClibc and older Glibc versions), O_CLOEXEC is only
+defined when _GNU_SOURCE is specified, so do so.
+
+Upstream bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=736670
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ sys/v4l2/gstv4l2allocator.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c
+index 2bc51c4..a5c9626 100644
+--- a/sys/v4l2/gstv4l2allocator.c
++++ b/sys/v4l2/gstv4l2allocator.c
+@@ -21,6 +21,10 @@
+
+ #include "config.h"
+
++#ifndef _GNU_SOURCE
++# define _GNU_SOURCE /* O_CLOEXEC */
++#endif
++
+ #include "ext/videodev2.h"
+ #include "gstv4l2allocator.h"
+ #include "v4l2_calls.h"
+--
+2.1.0
+
OpenPOWER on IntegriCloud