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
This commit is contained in:
Peter Korsgaard 2014-09-15 14:51:24 +02:00 committed by Sebastian Dröge
parent 711e1407a1
commit d3eea8f606

View file

@ -21,6 +21,10 @@
#include "config.h" #include "config.h"
#ifndef _GNU_SOURCE
# define _GNU_SOURCE /* O_CLOEXEC */
#endif
#include "ext/videodev2.h" #include "ext/videodev2.h"
#include "gstv4l2allocator.h" #include "gstv4l2allocator.h"
#include "v4l2_calls.h" #include "v4l2_calls.h"