summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-09-15 14:51:24 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-09-16 11:31:22 +0300
commit0201370461c912aef9bc1dc6780c08ca305de56c (patch)
treef54a5e0ebd2a834e67445ccd217d12aefe29c244
parentef00cd12053558133921f99b8046952d81c30aff (diff)
v4l2allocator: 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. https://bugzilla.gnome.org/show_bug.cgi?id=736670
-rw-r--r--sys/v4l2/gstv4l2allocator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c
index 2bc51c48a..a5c96269c 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"